Skip to content

Commit a70555a

Browse files
test: update
1 parent dc6e368 commit a70555a

11 files changed

+2429
-2615
lines changed

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

Lines changed: 124 additions & 124 deletions
Large diffs are not rendered by default.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`"base" option should work: DOM 1`] = `
44
"<!DOCTYPE html><html><head>
55
<title>style-loader test</title>
6-
<style id=\\"existing-style\\">.existing { color: yellow }</style>
6+
<style id="existing-style">.existing { color: yellow }</style>
77
<style>body {
88
color: red;
99
}
@@ -13,13 +13,13 @@ exports[`"base" option should work: DOM 1`] = `
1313
</style></head>
1414
<body>
1515
<h1>Body</h1>
16-
<div class=\\"target\\"></div>
17-
<iframe class=\\"iframeTarget\\"></iframe>
16+
<div class="target"></div>
17+
<iframe class="iframeTarget"></iframe>
1818
1919
2020
</body></html>"
2121
`;
2222

23-
exports[`"base" option should work: errors 1`] = `Array []`;
23+
exports[`"base" option should work: errors 1`] = `[]`;
2424

25-
exports[`"base" option should work: warnings 1`] = `Array []`;
25+
exports[`"base" option should work: warnings 1`] = `[]`;

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

Lines changed: 1702 additions & 1720 deletions
Large diffs are not rendered by default.
Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag" with non DOM environment: errors 1`] = `Array []`;
3+
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag" with non DOM environment: errors 1`] = `[]`;
44

5-
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag" with non DOM environment: warnings 1`] = `Array []`;
5+
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag" with non DOM environment: warnings 1`] = `[]`;
66

77
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": DOM 1`] = `
88
"<!DOCTYPE html><html><head>
99
<title>style-loader test</title>
10-
<style id=\\"existing-style\\">.existing { color: yellow }</style>
10+
<style id="existing-style">.existing { color: yellow }</style>
1111
<style>body {
1212
color: red;
1313
}
@@ -17,25 +17,25 @@ exports[`"injectType" option should work when the "injectType" option is "autoSt
1717
</style></head>
1818
<body>
1919
<h1>Body</h1>
20-
<div class=\\"target\\"></div>
21-
<iframe class=\\"iframeTarget\\"></iframe>
20+
<div class="target"></div>
21+
<iframe class="iframeTarget"></iframe>
2222
2323
2424
</body></html>"
2525
`;
2626

27-
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": errors 1`] = `Array []`;
27+
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": errors 1`] = `[]`;
2828

29-
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": warnings 1`] = `Array []`;
29+
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": warnings 1`] = `[]`;
3030

31-
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag" with non DOM environment: errors 1`] = `Array []`;
31+
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag" with non DOM environment: errors 1`] = `[]`;
3232

33-
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag" with non DOM environment: warnings 1`] = `Array []`;
33+
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag" with non DOM environment: warnings 1`] = `[]`;
3434

3535
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": DOM 1`] = `
3636
"<!DOCTYPE html><html><head>
3737
<title>style-loader test</title>
38-
<style id=\\"existing-style\\">.existing { color: yellow }</style>
38+
<style id="existing-style">.existing { color: yellow }</style>
3939
<style>body {
4040
color: red;
4141
}
@@ -45,25 +45,25 @@ exports[`"injectType" option should work when the "injectType" option is "lazyAu
4545
</style></head>
4646
<body>
4747
<h1>Body</h1>
48-
<div class=\\"target\\"></div>
49-
<iframe class=\\"iframeTarget\\"></iframe>
48+
<div class="target"></div>
49+
<iframe class="iframeTarget"></iframe>
5050
5151
5252
</body></html>"
5353
`;
5454

55-
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": errors 1`] = `Array []`;
55+
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": errors 1`] = `[]`;
5656

57-
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": warnings 1`] = `Array []`;
57+
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": warnings 1`] = `[]`;
5858

59-
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag" with non DOM environment: errors 1`] = `Array []`;
59+
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag" with non DOM environment: errors 1`] = `[]`;
6060

61-
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag" with non DOM environment: warnings 1`] = `Array []`;
61+
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag" with non DOM environment: warnings 1`] = `[]`;
6262

6363
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": DOM 1`] = `
6464
"<!DOCTYPE html><html><head>
6565
<title>style-loader test</title>
66-
<style id=\\"existing-style\\">.existing { color: yellow }</style>
66+
<style id="existing-style">.existing { color: yellow }</style>
6767
<style>body {
6868
color: red;
6969
}
@@ -73,25 +73,25 @@ h1 {
7373
</style></head>
7474
<body>
7575
<h1>Body</h1>
76-
<div class=\\"target\\"></div>
77-
<iframe class=\\"iframeTarget\\"></iframe>
76+
<div class="target"></div>
77+
<iframe class="iframeTarget"></iframe>
7878
7979
8080
</body></html>"
8181
`;
8282

83-
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": errors 1`] = `Array []`;
83+
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": errors 1`] = `[]`;
8484

85-
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": warnings 1`] = `Array []`;
85+
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": warnings 1`] = `[]`;
8686

87-
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag" with non DOM environment: errors 1`] = `Array []`;
87+
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag" with non DOM environment: errors 1`] = `[]`;
8888

89-
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag" with non DOM environment: warnings 1`] = `Array []`;
89+
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag" with non DOM environment: warnings 1`] = `[]`;
9090

9191
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": DOM 1`] = `
9292
"<!DOCTYPE html><html><head>
9393
<title>style-loader test</title>
94-
<style id=\\"existing-style\\">.existing { color: yellow }</style>
94+
<style id="existing-style">.existing { color: yellow }</style>
9595
<style>body {
9696
color: red;
9797
}
@@ -101,47 +101,47 @@ exports[`"injectType" option should work when the "injectType" option is "lazySt
101101
</style></head>
102102
<body>
103103
<h1>Body</h1>
104-
<div class=\\"target\\"></div>
105-
<iframe class=\\"iframeTarget\\"></iframe>
104+
<div class="target"></div>
105+
<iframe class="iframeTarget"></iframe>
106106
107107
108108
</body></html>"
109109
`;
110110

111-
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": errors 1`] = `Array []`;
111+
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": errors 1`] = `[]`;
112112

113-
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": warnings 1`] = `Array []`;
113+
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": warnings 1`] = `[]`;
114114

115-
exports[`"injectType" option should work when the "injectType" option is "linkTag" with non DOM environment: errors 1`] = `Array []`;
115+
exports[`"injectType" option should work when the "injectType" option is "linkTag" with non DOM environment: errors 1`] = `[]`;
116116

117-
exports[`"injectType" option should work when the "injectType" option is "linkTag" with non DOM environment: warnings 1`] = `Array []`;
117+
exports[`"injectType" option should work when the "injectType" option is "linkTag" with non DOM environment: warnings 1`] = `[]`;
118118

119119
exports[`"injectType" option should work when the "injectType" option is "linkTag": DOM 1`] = `
120120
"<!DOCTYPE html><html><head>
121121
<title>style-loader test</title>
122-
<style id=\\"existing-style\\">.existing { color: yellow }</style>
123-
<link rel=\\"stylesheet\\" href=\\"style.css\\"><link rel=\\"stylesheet\\" href=\\"style-other.css\\"></head>
122+
<style id="existing-style">.existing { color: yellow }</style>
123+
<link rel="stylesheet" href="style.css"><link rel="stylesheet" href="style-other.css"></head>
124124
<body>
125125
<h1>Body</h1>
126-
<div class=\\"target\\"></div>
127-
<iframe class=\\"iframeTarget\\"></iframe>
126+
<div class="target"></div>
127+
<iframe class="iframeTarget"></iframe>
128128
129129
130130
</body></html>"
131131
`;
132132
133-
exports[`"injectType" option should work when the "injectType" option is "linkTag": errors 1`] = `Array []`;
133+
exports[`"injectType" option should work when the "injectType" option is "linkTag": errors 1`] = `[]`;
134134
135-
exports[`"injectType" option should work when the "injectType" option is "linkTag": warnings 1`] = `Array []`;
135+
exports[`"injectType" option should work when the "injectType" option is "linkTag": warnings 1`] = `[]`;
136136
137-
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag" with non DOM environment: errors 1`] = `Array []`;
137+
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag" with non DOM environment: errors 1`] = `[]`;
138138
139-
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag" with non DOM environment: warnings 1`] = `Array []`;
139+
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag" with non DOM environment: warnings 1`] = `[]`;
140140
141141
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": DOM 1`] = `
142142
"<!DOCTYPE html><html><head>
143143
<title>style-loader test</title>
144-
<style id=\\"existing-style\\">.existing { color: yellow }</style>
144+
<style id="existing-style">.existing { color: yellow }</style>
145145
<style>body {
146146
color: red;
147147
}
@@ -151,25 +151,25 @@ h1 {
151151
</style></head>
152152
<body>
153153
<h1>Body</h1>
154-
<div class=\\"target\\"></div>
155-
<iframe class=\\"iframeTarget\\"></iframe>
154+
<div class="target"></div>
155+
<iframe class="iframeTarget"></iframe>
156156
157157
158158
</body></html>"
159159
`;
160160
161-
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": errors 1`] = `Array []`;
161+
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": errors 1`] = `[]`;
162162
163-
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": warnings 1`] = `Array []`;
163+
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": warnings 1`] = `[]`;
164164
165-
exports[`"injectType" option should work when the "injectType" option is "styleTag" with non DOM environment: errors 1`] = `Array []`;
165+
exports[`"injectType" option should work when the "injectType" option is "styleTag" with non DOM environment: errors 1`] = `[]`;
166166
167-
exports[`"injectType" option should work when the "injectType" option is "styleTag" with non DOM environment: warnings 1`] = `Array []`;
167+
exports[`"injectType" option should work when the "injectType" option is "styleTag" with non DOM environment: warnings 1`] = `[]`;
168168
169169
exports[`"injectType" option should work when the "injectType" option is "styleTag": DOM 1`] = `
170170
"<!DOCTYPE html><html><head>
171171
<title>style-loader test</title>
172-
<style id=\\"existing-style\\">.existing { color: yellow }</style>
172+
<style id="existing-style">.existing { color: yellow }</style>
173173
<style>body {
174174
color: red;
175175
}
@@ -179,13 +179,13 @@ exports[`"injectType" option should work when the "injectType" option is "styleT
179179
</style></head>
180180
<body>
181181
<h1>Body</h1>
182-
<div class=\\"target\\"></div>
183-
<iframe class=\\"iframeTarget\\"></iframe>
182+
<div class="target"></div>
183+
<iframe class="iframeTarget"></iframe>
184184
185185
186186
</body></html>"
187187
`;
188188
189-
exports[`"injectType" option should work when the "injectType" option is "styleTag": errors 1`] = `Array []`;
189+
exports[`"injectType" option should work when the "injectType" option is "styleTag": errors 1`] = `[]`;
190190
191-
exports[`"injectType" option should work when the "injectType" option is "styleTag": warnings 1`] = `Array []`;
191+
exports[`"injectType" option should work when the "injectType" option is "styleTag": warnings 1`] = `[]`;

0 commit comments

Comments
 (0)