Skip to content

Commit 4ed5f9a

Browse files
test: fix
1 parent 837f313 commit 4ed5f9a

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

test/__snapshots__/import-option.test.js.snap

+25-25
Original file line numberDiff line numberDiff line change
@@ -872,22 +872,22 @@ a {
872872
}@layer(default) {.test {
873873
a: a;
874874
}
875-
}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {.test {
875+
}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {.test {
876876
a: a;
877877
}
878-
}}}@supports(display: flex) {@media screen and (min-width: 400px) {@import url(http://example.com/style.css);}}@layer(default) {@supports(display: flex) {@media screen and (min-width:400px) {.test {
878+
}}}@media screen and (min-width: 400px) {@supports(display: flex) {@import url(http://example.com/style.css);}}@supports(display: flex) {@media screen and (min-width:400px) {@layer(default) {.test {
879879
a: a;
880880
}
881881
}}}@media screen and (min-width: 400px) {.test {
882882
a: a;
883883
}
884-
}@layer( default ) {@supports( display : flex ) {@media screen and ( min-width : 400px ) {.test {
884+
}@supports( display : flex ) {@media screen and ( min-width : 400px ) {@layer( default ) {.test {
885885
a: a;
886886
}
887-
}}}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {.test {
887+
}}}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {.test {
888888
a: a;
889889
}
890-
}}}@/* comment */ layer(/* comment */default/* comment */) {@/* comment */ supports(/* comment */display/* comment */:/* comment */ flex/* comment */) {@media /* comment */ screen/* comment */ and/* comment */ (/* comment */min-width/* comment */: /* comment */400px/* comment */) {.test {
890+
}}}@/* comment */ supports(/* comment */display/* comment */:/* comment */ flex/* comment */) {@media /* comment */ screen/* comment */ and/* comment */ (/* comment */min-width/* comment */: /* comment */400px/* comment */) {@/* comment */ layer(/* comment */default/* comment */) {.test {
891891
a: a;
892892
}
893893
}}}.test {
@@ -908,16 +908,16 @@ a {
908908
}@supports(display: flex) {}@supports(display: flex) and supports(display: grid) {@media screen and (min-width: 400px) and handheld and (max-width: 400px) {.test {
909909
a: a;
910910
}
911-
}}@supports(display: flex) {@media screen and (min-width: 400px) {}}@layer(base) {@layer(default) and supports(display: grid) {.test {
911+
}}@supports(display: flex) {@media screen and (min-width: 400px) {}}@layer(default) and supports(display: grid) {@layer(base) {.test {
912912
a: a;
913913
}
914914
}}@layer(default) {}@layer(default) and layer {.test {
915915
a: a;
916916
}
917-
}@layer(default) {}@layer(default) {@supports(display: flex) and layer(base) {.test {
917+
}@layer(default) {}@supports(display: flex) and layer(base) {@layer(default) {.test {
918918
a: a;
919919
}
920-
}}@layer(default) {@supports(display: flex) {}}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {}}}@media unknown(default) unknown(display: flex) unknown {.test {
920+
}}@supports(display: flex) {@layer(default) {}}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {}}}@media unknown(default) unknown(display: flex) unknown {.test {
921921
a: a;
922922
}
923923
}@import url();
@@ -1448,22 +1448,22 @@ a {
14481448
}@layer(default) {.test {
14491449
a: a;
14501450
}
1451-
}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {.test {
1451+
}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {.test {
14521452
a: a;
14531453
}
1454-
}}}@supports(display: flex) {@media screen and (min-width: 400px) {@import url(http://example.com/style.css);}}@layer(default) {@supports(display: flex) {@media screen and (min-width:400px) {.test {
1454+
}}}@media screen and (min-width: 400px) {@supports(display: flex) {@import url(http://example.com/style.css);}}@supports(display: flex) {@media screen and (min-width:400px) {@layer(default) {.test {
14551455
a: a;
14561456
}
14571457
}}}@media screen and (min-width: 400px) {.test {
14581458
a: a;
14591459
}
1460-
}@layer( default ) {@supports( display : flex ) {@media screen and ( min-width : 400px ) {.test {
1460+
}@supports( display : flex ) {@media screen and ( min-width : 400px ) {@layer( default ) {.test {
14611461
a: a;
14621462
}
1463-
}}}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {.test {
1463+
}}}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {.test {
14641464
a: a;
14651465
}
1466-
}}}@/* comment */ layer(/* comment */default/* comment */) {@/* comment */ supports(/* comment */display/* comment */:/* comment */ flex/* comment */) {@media /* comment */ screen/* comment */ and/* comment */ (/* comment */min-width/* comment */: /* comment */400px/* comment */) {.test {
1466+
}}}@/* comment */ supports(/* comment */display/* comment */:/* comment */ flex/* comment */) {@media /* comment */ screen/* comment */ and/* comment */ (/* comment */min-width/* comment */: /* comment */400px/* comment */) {@/* comment */ layer(/* comment */default/* comment */) {.test {
14671467
a: a;
14681468
}
14691469
}}}.test {
@@ -1484,16 +1484,16 @@ a {
14841484
}@supports(display: flex) {}@supports(display: flex) and supports(display: grid) {@media screen and (min-width: 400px) and handheld and (max-width: 400px) {.test {
14851485
a: a;
14861486
}
1487-
}}@supports(display: flex) {@media screen and (min-width: 400px) {}}@layer(base) {@layer(default) and supports(display: grid) {.test {
1487+
}}@supports(display: flex) {@media screen and (min-width: 400px) {}}@layer(default) and supports(display: grid) {@layer(base) {.test {
14881488
a: a;
14891489
}
14901490
}}@layer(default) {}@layer(default) and layer {.test {
14911491
a: a;
14921492
}
1493-
}@layer(default) {}@layer(default) {@supports(display: flex) and layer(base) {.test {
1493+
}@layer(default) {}@supports(display: flex) and layer(base) {@layer(default) {.test {
14941494
a: a;
14951495
}
1496-
}}@layer(default) {@supports(display: flex) {}}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {}}}@media unknown(default) unknown(display: flex) unknown {.test {
1496+
}}@supports(display: flex) {@layer(default) {}}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {}}}@media unknown(default) unknown(display: flex) unknown {.test {
14971497
a: a;
14981498
}
14991499
}@import url();
@@ -2602,22 +2602,22 @@ a {
26022602
}@layer(default) {.test {
26032603
a: a;
26042604
}
2605-
}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {.test {
2605+
}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {.test {
26062606
a: a;
26072607
}
2608-
}}}@supports(display: flex) {@media screen and (min-width: 400px) {@import url(http://example.com/style.css);}}@layer(default) {@supports(display: flex) {@media screen and (min-width:400px) {.test {
2608+
}}}@media screen and (min-width: 400px) {@supports(display: flex) {@import url(http://example.com/style.css);}}@supports(display: flex) {@media screen and (min-width:400px) {@layer(default) {.test {
26092609
a: a;
26102610
}
26112611
}}}@media screen and (min-width: 400px) {.test {
26122612
a: a;
26132613
}
2614-
}@layer( default ) {@supports( display : flex ) {@media screen and ( min-width : 400px ) {.test {
2614+
}@supports( display : flex ) {@media screen and ( min-width : 400px ) {@layer( default ) {.test {
26152615
a: a;
26162616
}
2617-
}}}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {.test {
2617+
}}}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {.test {
26182618
a: a;
26192619
}
2620-
}}}@/* comment */ layer(/* comment */default/* comment */) {@/* comment */ supports(/* comment */display/* comment */:/* comment */ flex/* comment */) {@media /* comment */ screen/* comment */ and/* comment */ (/* comment */min-width/* comment */: /* comment */400px/* comment */) {.test {
2620+
}}}@/* comment */ supports(/* comment */display/* comment */:/* comment */ flex/* comment */) {@media /* comment */ screen/* comment */ and/* comment */ (/* comment */min-width/* comment */: /* comment */400px/* comment */) {@/* comment */ layer(/* comment */default/* comment */) {.test {
26212621
a: a;
26222622
}
26232623
}}}.test {
@@ -2638,16 +2638,16 @@ a {
26382638
}@supports(display: flex) {}@supports(display: flex) and supports(display: grid) {@media screen and (min-width: 400px) and handheld and (max-width: 400px) {.test {
26392639
a: a;
26402640
}
2641-
}}@supports(display: flex) {@media screen and (min-width: 400px) {}}@layer(base) {@layer(default) and supports(display: grid) {.test {
2641+
}}@supports(display: flex) {@media screen and (min-width: 400px) {}}@layer(default) and supports(display: grid) {@layer(base) {.test {
26422642
a: a;
26432643
}
26442644
}}@layer(default) {}@layer(default) and layer {.test {
26452645
a: a;
26462646
}
2647-
}@layer(default) {}@layer(default) {@supports(display: flex) and layer(base) {.test {
2647+
}@layer(default) {}@supports(display: flex) and layer(base) {@layer(default) {.test {
26482648
a: a;
26492649
}
2650-
}}@layer(default) {@supports(display: flex) {}}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {}}}@media unknown(default) unknown(display: flex) unknown {.test {
2650+
}}@supports(display: flex) {@layer(default) {}}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {}}}@media unknown(default) unknown(display: flex) unknown {.test {
26512651
a: a;
26522652
}
26532653
}@import url();
@@ -2994,7 +2994,7 @@ a {
29942994
.second {
29952995
color: red;
29962996
}
2997-
@supports(display: flex) {@media screen and (min-width: 400px) {@import url(http://example.com/style.css);}}@supports(display: flex) {@import url('./test.css') supports(display: grid);}@supports(display: flex) {@media screen and (min-width: 400px) {@import url('./test.css') supports(display: grid) handheld and (max-width: 400px);}}@layer(default) {@import url('./test.css') layer(base) supports(display: grid);}@layer(default) {@import url('./test.css') layer;}@layer(default) {@supports(display: flex) {@import url('./test.css') layer(base);}}@layer(default) {@supports(display: flex) {@media screen and (min-width: 400px) {}}}@import url(test.css);
2997+
@media screen and (min-width: 400px) {@supports(display: flex) {@import url(http://example.com/style.css);}}@supports(display: flex) {@import url('./test.css') supports(display: grid);}@supports(display: flex) {@media screen and (min-width: 400px) {@import url('./test.css') supports(display: grid) handheld and (max-width: 400px);}}@layer(default) {@import url('./test.css') layer(base) supports(display: grid);}@layer(default) {@import url('./test.css') layer;}@supports(display: flex) {@layer(default) {@import url('./test.css') layer(base);}}@supports(display: flex) {@media screen and (min-width: 400px) {@layer(default) {}}}@import url(test.css);
29982998
@import url('test.css');
29992999
@import url(\\"test.css\\");
30003000
@IMPORT url(test.css);

test/runtime/__snapshots__/api.test.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports[`api should toString with layer 1`] = `"body { b: 2; }body { c: 3; }body
2424

2525
exports[`api should toString with media query list 1`] = `"body { b: 2; }body { c: 3; }body { b: 2; }@media print {body { b: 2; }}@media print {body { d: 4; }}@media screen {body { a: 1; }}"`;
2626

27-
exports[`api should toString with media query list, layer and supports 1`] = `"body { b: 2; }body { c: 3; }body { b: 2; }@media print {body { b: 2; }}@media print {body { d: 4; }}@layer(default) {@supports (display: grid) {@media screen {body { a: 1; }}}}"`;
27+
exports[`api should toString with media query list, layer and supports 1`] = `"body { b: 2; }body { c: 3; }body { b: 2; }@media print {body { b: 2; }}@media print {body { d: 4; }}@supports (display: grid) {@media screen {@layer(default) {body { a: 1; }}}}"`;
2828

2929
exports[`api should toString with source mapping 1`] = `
3030
"@[object Object] {body { a: 1; }

test/sourceMap-option.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ describe('"sourceMap" option', () => {
498498
(assetName) => /\.js$/.test(assetName)
499499
);
500500

501-
expect(chunkName).toBe("main.3d1970f1effd30ed73f3.bundle.js");
501+
expect(chunkName).toBe("main.c702906a958e85e1ca77.bundle.js");
502502
expect(
503503
getModuleSource("fixtures/source-map/basic.css", stats)
504504
).toMatchSnapshot("module");

0 commit comments

Comments
 (0)