Skip to content

Commit

Permalink
update tests to reflect Lightning CSS bump
Browse files Browse the repository at this point in the history
+ solves an issue we had where `height: 100vh; height: -moz-available;`
  was missing. Nice!
  • Loading branch information
RobinMalfait authored and depfu[bot] committed Jan 22, 2024
1 parent 9c626a5 commit f945fc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tests/collapse-duplicate-declarations.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,11 @@ it('should work on a real world example', () => {
}
`

// TODO: This seems like a bug with compat data
// `-moz-available` should still be listed
// and most like `100vh` as well
return run(input, config).then((result) => {
expect(result.css).toMatchFormattedCss(css`
.h-available {
height: 100vh;
height: -moz-available;
height: -webkit-fill-available;
}
`)
Expand Down
4 changes: 2 additions & 2 deletions tests/detect-nesting.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ it('should not warn when we detect nested css inside css @layer rules', () => {
}

let input = css`
@layer tw-base, tw-components, tw-utilities;
@layer tw-base, tw-components;
@layer tw-utilities {
@tailwind utilities;
}
`

return run(input, config).then((result) => {
expect(result.css).toMatchFormattedCss(css`
@layer tw-base, tw-components, tw-utilities;
@layer tw-base, tw-components;
@layer tw-utilities {
.underline {
text-decoration-line: underline;
Expand Down

0 comments on commit f945fc8

Please sign in to comment.