Skip to content

Commit

Permalink
fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter committed May 21, 2024
1 parent 780065c commit f6c9a24
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion e2e/rspack/src/snapshots/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
outline-offset: 5px;
}
@media (min-width: 968px) and (orientation: landscape) {
.fftofzc {
.f1tnsuik {
width: 400px;
}
}
20 changes: 10 additions & 10 deletions packages/core/src/runtime/resolveStyleRules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ describe('resolveStyleRules', () => {
}),
).toMatchInlineSnapshot(`
@media screen and (max-width: 992px) {
.f1el5hyx {
text-align: left;
}
.f1qqk4p1 {
.f1avj2xq {
text-align: right;
}
.f1bxmk0a {
text-align: left;
}
}
`);
});
Expand Down Expand Up @@ -560,7 +560,7 @@ describe('resolveStyleRules', () => {
color: green;
}
@media screen and (max-width: 992px) {
.f2bvvla {
.f15as2e {
color: red;
}
}
Expand All @@ -582,7 +582,7 @@ describe('resolveStyleRules', () => {
color: green;
}
@media screen and (max-width: 992px) {
.fuy1c5o:hover {
.f1951wvx:hover {
color: red;
}
}
Expand All @@ -603,12 +603,12 @@ describe('resolveStyleRules', () => {
color: red;
}
@media screen and (max-width: 992px) {
.f2bvvla {
.f15as2e {
color: red;
}
}
@media screen and (max-width: 992px) and (min-width: 100px) {
.f1imqg8u {
.fnnlhvt {
color: red;
}
}
Expand Down Expand Up @@ -985,8 +985,8 @@ describe('resolveStyleRules', () => {

expect(result[1]).toEqual({
m: [
['@media screen{.f1f7xnks{color:red;}}', { m: 'screen' }],
['@media screen{.f1pegaf3{padding:10px;}}', { m: 'screen', p: -1 }],
['@media screen{.f12pk7j4{color:red;}}', { m: 'screen' }],
['@media screen{.f1eoyco2{padding:10px;}}', { m: 'screen', p: -1 }],
],
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/runtime/utils/hashClassName.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('hashClassName', () => {
const hashB = hashClassName(defaultOptions, { ...defaultAtRules, media: '(min-width: 500px)' });

expect(hashA).toMatchInlineSnapshot(`"f18ymuke"`);
expect(hashB).toMatchInlineSnapshot(`"f16oyr76"`);
expect(hashB).toMatchInlineSnapshot(`"f1hoxic9"`);
expect(hashA).not.toBe(hashB);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/runtime/utils/hashPropertyKey.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('hashPropertyKey', () => {
const hashB = hashPropertyKey('', 'color', { ...defaultAtRules, media: '(min-width: 500px)' });

expect(hashA).toMatchInlineSnapshot(`"Bhkzl7a"`);
expect(hashB).toMatchInlineSnapshot(`"zc7s4b"`);
expect(hashB).toMatchInlineSnapshot(`"B3v6anr"`);
expect(hashA).not.toBe(hashB);
});
});

0 comments on commit f6c9a24

Please sign in to comment.