Skip to content

Commit

Permalink
clearer description for test
Browse files Browse the repository at this point in the history
  • Loading branch information
crswll committed Jun 3, 2022
1 parent ad63403 commit 3934156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('getThemeAsCustomProps', () => {
expect(defaultConfigValueTransformer(['fontFamily', 'sans'], ['font a', 'font b'])).toEqual('var(--font-family-sans, font a,font b)')
})

test('should throw a warning when using the more complex allowed value for font size', () => {
test('should just use the font-size when using a more complex value for fontSize', () => {
expect(defaultConfigValueTransformer(['fontSize', 'complex'], ['24px', { lineHeight: '1.2' }])).toEqual('var(--font-size-complex, 24px)')
expect(defaultConfigValueTransformer(['fontSize', 'complex'], ['22px', '1.2'])).toEqual('var(--font-size-complex, 22px)')
})
Expand Down

0 comments on commit 3934156

Please sign in to comment.