Skip to content

Commit 9a1850c

Browse files
committed
chore: update snapshots
1 parent e5b8aeb commit 9a1850c

9 files changed

+5406
-3341
lines changed

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

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

test/__snapshots__/loader.test.js.snap

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

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

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

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`'postprocess' option should work with async "postprocessor" function option: errors 1`] = `[]`;
44

@@ -18,7 +18,7 @@ export default code;"
1818
exports[`'postprocess' option should work with async "postprocessor" function option: result 1`] = `
1919
"<div>
2020
<p>{{firstname}} {{lastname}}</p>
21-
<img src="replaced_file_protocol_/webpack/public/path/image.png" alt="alt" />
21+
<img src="replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png" alt="alt" />
2222
<div>
2323
"
2424
`;
@@ -66,10 +66,10 @@ export default code;"
6666
`;
6767
6868
exports[`'postprocess' option should work with the "postprocessor" option: result 1`] = `
69-
"<img src="replaced_file_protocol_/webpack/public/path/image.png">
69+
"<img src="replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png">
7070
<img src="Hello 2">
71-
<img src="/webpack/public/path/image.png">
72-
<img src="replaced_file_protocol_/webpack/public/path/image.png">
71+
<img src="/webpack/public/path/image-7bc91c245a8a10a4.png">
72+
<img src="replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png">
7373
<div><h2>Gallery</h2></div>
7474
<!--Works fine, but need improve testing <div>< %= (await import('./gallery.html')).default % ></div>-->
7575
"

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`'preprocess' option should work with async "preprocessor" function option: errors 1`] = `[]`;
44

@@ -18,7 +18,7 @@ export default code;"
1818
exports[`'preprocess' option should work with async "preprocessor" function option: result 1`] = `
1919
"<div>
2020
<p>Alexander Krasnoyarov</p>
21-
<img src="replaced_file_protocol_/webpack/public/path/image.png" alt="alt" />
21+
<img src="replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png" alt="alt" />
2222
<div>
2323
"
2424
`;
@@ -39,7 +39,7 @@ export default code;"
3939
`;
4040
4141
exports[`'preprocess' option should work with the "preprocessor" option #2: result 1`] = `
42-
"<picture><source type="image/webp" srcset="replaced_file_protocol_/webpack/public/path/image.png.webp"><img src="replaced_file_protocol_/webpack/public/path/image.png"></picture>
42+
"<picture><source type="image/webp" srcset="replaced_file_protocol_/webpack/public/path/image.png-7bc91c245a8a10a4.webp"><img src="replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png"></picture>
4343
"
4444
`;
4545
@@ -63,7 +63,7 @@ export default code;"
6363
exports[`'preprocess' option should work with the "preprocessor" option: result 1`] = `
6464
"<div>
6565
<p>Alexander Krasnoyarov</p>
66-
<img src="replaced_file_protocol_/webpack/public/path/image.png" alt="alt" />
66+
<img src="replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png" alt="alt" />
6767
<div>
6868
"
6969
`;
@@ -84,7 +84,7 @@ export default code;"
8484
`;
8585
8686
exports[`'preprocess' option should work with the async "preprocessor" function option #2: result 1`] = `
87-
"<picture><source type="image/webp" srcset="replaced_file_protocol_/webpack/public/path/image.png.webp"><img src="replaced_file_protocol_/webpack/public/path/image.png"></picture>
87+
"<picture><source type="image/webp" srcset="replaced_file_protocol_/webpack/public/path/image.png-7bc91c245a8a10a4.webp"><img src="replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png"></picture>
8888
"
8989
`;
9090

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

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

test/helpers/getCompiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default (fixture, loaderOptions = {}, config = {}) => {
1616
chunkLoading: "require",
1717
publicPath: "/webpack/public/path/",
1818
library: "___TEST___",
19-
assetModuleFilename: "[name][ext]",
19+
assetModuleFilename: "[name]-[contenthash][ext]",
2020
hashFunction: "xxhash64",
2121
},
2222
module: {

test/lock-files/url/https_github.com/webpack-contrib_css-loader_blob_master_src_index_c9784a6436645af20518.js

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

test/lock-files/url/lock.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{
2-
"https://github.com/webpack-contrib/css-loader/blob/master/src/index.js": {
3-
"integrity": "sha512-30CY7kxIy/A2crE5iESluuELzynobvlb/MapqLxRWrgI117LeHeAHmucwVj9pQgorBS5H9Z5BT7QcKtMpxbhMg==",
4-
"contentType": "text/html; charset=utf-8"
5-
},
6-
"https://raw.githubusercontent.com/webpack-contrib/html-loader/master/test/fixtures/image.png": {
7-
"integrity": "sha512-bHqIPBYwzPsVLYcTDqJzwgvIaxLjmezufiCVXAMI0Naelf3eWVdydMA40hXbSuB0dZCGjCepuGaI7Ze8kLM+Ew==",
8-
"contentType": "image/png"
9-
},
2+
"https://github.com/webpack-contrib/css-loader/blob/master/src/index.js": { "integrity": "sha512-xkvpPsKYbZ7Ub9btIBeo0y7dDRkLAuEee9y78q4+DrlS5zZVEEIMy1DZhKldJnkGvV9YVaO7R/dh4RMj4ZcvCQ==", "contentType": "text/html; charset=utf-8" },
3+
"https://raw.githubusercontent.com/webpack-contrib/html-loader/master/test/fixtures/image.png": { "integrity": "sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==", "contentType": "image/png" },
104
"version": 1
115
}

0 commit comments

Comments
 (0)