forked from mui/pigment-css
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ignore transforming useTheme reference * Fix the path to generate theme source
- Loading branch information
1 parent
e672e4b
commit 71bd651
Showing
5 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
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
3 changes: 1 addition & 2 deletions
3
packages/pigment-css-react/tests/createExtendSxProp/runtime-createExtendSxProp.test.js
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { describe } from 'yargs'; | ||
import { expect } from 'chai'; | ||
import createExtendSxProp from '../../src/createExtendSxProp'; | ||
|
||
describe('createExtendSxProp', () => { | ||
it('return the new copy of input', () => { | ||
const original = { color: 'red' }; | ||
expect(createExtendSxProp()(original)).to.not.equal(original); | ||
expect(createExtendSxProp()(original)).to.equal(original); | ||
expect(createExtendSxProp()(original)).to.deep.equal({ color: 'red' }); | ||
}); | ||
}); |
4 changes: 3 additions & 1 deletion
4
packages/pigment-css-react/tests/useTheme/fixtures/useTheme.input.js
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
2 changes: 2 additions & 0 deletions
2
packages/pigment-css-react/tests/useTheme/fixtures/useTheme.output.js
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