Skip to content

Commit f08ee98

Browse files
test: more
1 parent 8b3fc11 commit f08ee98

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports[`api should toString with a source map without "sourceRoot" 1`] = `
2020

2121
exports[`api should toString with a source map without map 1`] = `"@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');"`;
2222

23-
exports[`api should toString with layer 1`] = `"body { b: 2; }body { c: 3; }body { b: 2; }@media print {body { b: 2; }}@media print {body { d: 4; }}@layer default {body { a: 1; }}@layer {body { e: 5; }}@layer framework {@layer default {body { a: 1; }}}@layer framework {@layer {body { e: 5; }}}"`;
23+
exports[`api should toString with layer 1`] = `"body { b: 2; }body { c: 3; }body { b: 2; }@media print {body { b: 2; }}@media print {body { d: 4; }}@layer default {body { a: 1; }}@layer {body { e: 5; }}@layer framework {@layer default {body { a: 1; }}}@layer framework {@layer {body { e: 5; }}}@layer framework {body { f: 6; }}"`;
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 (min-width: 900px) {body { a: 1; }}@media screen {@media (min-width: 900px) {body { a: 1; }}}@media screen and (min-width: 900px) {body { e: 5; }}"`;
2626

test/runtime/api.test.js

+9
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,22 @@ describe("api", () => {
9797
const m3 = [3, "body { c: 3; }", undefined];
9898
const m4 = [4, "body { d: 4; }", undefined];
9999
const m5 = [5, "body { e: 5; }", undefined, undefined, undefined, ""];
100+
const m6 = [
101+
5,
102+
"body { f: 6; }",
103+
undefined,
104+
undefined,
105+
undefined,
106+
undefined,
107+
];
100108

101109
m.i([m2, m3], undefined);
102110
m.i([m2], undefined);
103111
m.i([m2, m4], "print");
104112
m.push(m1);
105113
m.i([m5]);
106114
m.i([m1, m5], undefined, undefined, undefined, "framework");
115+
m.i([m6], undefined, undefined, undefined, "framework");
107116

108117
expect(m.toString()).toMatchSnapshot();
109118
});

0 commit comments

Comments
 (0)