Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
p-chan committed Oct 11, 2022
1 parent 0a0b477 commit 77023a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,18 @@ describe('Custom Properties', () => {
toCustomPropertiesArray({
strongBlack: { 100: '#999999', 900: '#000000' },
strongWhite: { 100: '#ffffff', 900: '#aaaaaa' },
black: { primary: '#000000', secondaryLight: '#111111' },
white: { primary: '#ffffff', secondaryDark: '#eeeeee' },
})
).toEqual([
{ key: '--strong-black-100', value: '#999999' },
{ key: '--strong-black-900', value: '#000000' },
{ key: '--strong-white-100', value: '#ffffff' },
{ key: '--strong-white-900', value: '#aaaaaa' },
{ key: '--black-primary', value: '#000000' },
{ key: '--black-secondary-light', value: '#111111' },
{ key: '--white-primary', value: '#ffffff' },
{ key: '--white-secondary-dark', value: '#eeeeee' },
])
})

Expand Down

0 comments on commit 77023a2

Please # to comment.