Skip to content

Commit f945fc8

Browse files
RobinMalfaitdepfu[bot]
authored andcommitted
update tests to reflect Lightning CSS bump
+ solves an issue we had where `height: 100vh; height: -moz-available;` was missing. Nice!
1 parent 9c626a5 commit f945fc8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/collapse-duplicate-declarations.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,11 @@ it('should work on a real world example', () => {
161161
}
162162
`
163163

164-
// TODO: This seems like a bug with compat data
165-
// `-moz-available` should still be listed
166-
// and most like `100vh` as well
167164
return run(input, config).then((result) => {
168165
expect(result.css).toMatchFormattedCss(css`
169166
.h-available {
167+
height: 100vh;
168+
height: -moz-available;
170169
height: -webkit-fill-available;
171170
}
172171
`)

tests/detect-nesting.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ it('should not warn when we detect nested css inside css @layer rules', () => {
3535
}
3636

3737
let input = css`
38-
@layer tw-base, tw-components, tw-utilities;
38+
@layer tw-base, tw-components;
3939
@layer tw-utilities {
4040
@tailwind utilities;
4141
}
4242
`
4343

4444
return run(input, config).then((result) => {
4545
expect(result.css).toMatchFormattedCss(css`
46-
@layer tw-base, tw-components, tw-utilities;
46+
@layer tw-base, tw-components;
4747
@layer tw-utilities {
4848
.underline {
4949
text-decoration-line: underline;

0 commit comments

Comments
 (0)