-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(design): boxShadow and boxShadowSecondary for static token and le…
…ss token should be correct
- Loading branch information
1 parent
f3f6181
commit 943509b
Showing
5 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
packages/design/src/config-provider/__tests__/static-function.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import { ConfigProvider, token } from '@oceanbase/design'; | ||
import defaultTheme from '../../theme/default'; | ||
|
||
describe('ConfigProvider static function', () => { | ||
it('token', () => { | ||
render( | ||
<ConfigProvider> | ||
<div /> | ||
</ConfigProvider> | ||
); | ||
expect(token.boxShadow).toBe(defaultTheme.token.boxShadow); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters