-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
- Loading branch information
1 parent
1f8ea14
commit b4765fc
Showing
3 changed files
with
27 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { sx } from './stylings'; | ||
export { sx } from './sx'; | ||
export { makeStyles } from './makeStyles'; |
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,26 @@ | ||
import { CSSProperties } from 'react'; | ||
import { sx } from './sx'; | ||
|
||
const primary: CSSProperties = { | ||
color: 'red', | ||
backgroundColor: 'blue', | ||
}; | ||
|
||
const button: CSSProperties = { | ||
color: 'yellow', | ||
borderRadius: '10px', | ||
}; | ||
|
||
const expectedStyle: CSSProperties = { | ||
color: 'yellow', | ||
backgroundColor: 'blue', | ||
borderRadius: '10px', | ||
}; | ||
|
||
describe('sx tests', () => { | ||
test('combining primary and button styles with sx should return expectedStyle', () => { | ||
const style = sx(primary, button); | ||
|
||
expect(style).toEqual(expectedStyle); | ||
}); | ||
}); |
File renamed without changes.