Skip to content

Commit

Permalink
add camelCase to test case
Browse files Browse the repository at this point in the history
  • Loading branch information
robinweser committed Feb 16, 2024
1 parent 26eee7f commit a79f68e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`Creating hooks should support fallbacks 1`] = `
":root {
--position-sticky:;
--width-min-content:;
--height-min-content:;
--minWidth-min-content:;
}
@supports (position:-webkit-sticky) {
Expand All @@ -25,9 +25,9 @@ exports[`Creating hooks should support fallbacks 1`] = `
}
}
@supports (height:-webkit-min-content) {
@supports (min-width:-webkit-min-content) {
:root {
--height-min-content: -webkit-min-content
--minWidth-min-content: -webkit-min-content
}
}
Expand All @@ -37,9 +37,9 @@ exports[`Creating hooks should support fallbacks 1`] = `
}
}
@supports (height:min-content) {
@supports (min-width:min-content) {
:root {
--height-min-content: min-content
--minWidth-min-content: min-content
}
}
Expand All @@ -57,6 +57,7 @@ exports[`Creating hooks should support fallbacks 2`] = `
{
"appearance": "var(--zh6im6-1, button) var(--zh6im6-0, none)",
"color": "red",
"minWidth": "var(--minWidth-min-content)",
"position": "var(--zh6im6-1, absolute) var(--zh6im6-0, var(--position-sticky))",
"width": "var(--zh6im6-1, auto) var(--zh6im6-0, var(--width-min-content))",
}
Expand Down
3 changes: 2 additions & 1 deletion packages/brandeur/src/__tests__/createHooks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Creating hooks', () => {
fallbacks: [
fallbackValue('position', ['-webkit-sticky', 'sticky']),
fallbackValue(
['width', 'height'],
['width', 'minWidth'],
['-webkit-min-content', 'min-content']
),
],
Expand All @@ -25,6 +25,7 @@ describe('Creating hooks', () => {
appearance: 'none',
position: 'sticky',
width: 'min-content',
minWidth: 'min-content',
':hover': {
appearance: 'button',
position: 'absolute',
Expand Down

0 comments on commit a79f68e

Please sign in to comment.