forked from webpack-contrib/css-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.test.js.snap
35 lines (21 loc) · 3.03 KB
/
api.test.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`api should import modules 1`] = `"body { b: 2; }body { c: 3; }body { b: 2; }@media print {body { b: 2; }}@media print {body { d: 4; }}@media screen {@media (orientation:landscape) {body { a: 1; }}}@media (orientation:landscape) {body { a: 1; }}"`;
exports[`api should import modules when module string 1`] = `".button { b: 2; }"`;
exports[`api should import modules with dedupe 1`] = `"body { b: 1; }body { b: 2; }.button { b: 3; }"`;
exports[`api should import named modules 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; }}"`;
exports[`api should toString a single module 1`] = `"body { a: 1; }"`;
exports[`api should toString multiple modules 1`] = `"body { b: 2; }body { a: 1; }"`;
exports[`api should toString with a source map without "sourceRoot" 1`] = `
"body { a: 1; }
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC5zY3NzIiwic291cmNlcyI6WyIuL3BhdGgvdG8vdGVzdC5zY3NzIl0sIm1hcHBpbmdzIjoiQUFBQTsifQ== */"
`;
exports[`api should toString with a source map without map 1`] = `"@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');"`;
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; }}"`;
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; }}"`;
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; }}}}@supports (display: block) {@media screen and (mix-width: 100px) {@layer framework {@supports (display: grid) {@media screen {@layer default {body { a: 1; }}}}}}}"`;
exports[`api should toString with source mapping 1`] = `
"body { a: 1; }
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC5zY3NzIiwic291cmNlcyI6WyIuL3BhdGgvdG8vdGVzdC5zY3NzIl0sIm1hcHBpbmdzIjoiQUFBQTsiLCJzb3VyY2VSb290Ijoid2VicGFjazovLyJ9 */"
`;
exports[`api should toString with supports 1`] = `"body { b: 2; }body { c: 3; }body { b: 2; }@supports (display: flex) {body { b: 2; }}@supports (display: flex) {body { d: 4; }}@supports (display: flex) {body { a: 1; }}@supports (display: block) {@supports (display: flex) {body { a: 1; }}}@supports (display: block) {@supports (display: grid) {body { e: 5; }}}@supports (display: grid) {body { e: 5; }}"`;
exports[`api should toString without source mapping if btoa not available 1`] = `"body { a: 1; }"`;