forked from webpack-contrib/worker-loader
/
filename-options.test.js.snap
66 lines (46 loc) · 2.88 KB
/
filename-options.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`"filename" option should work ("function"): errors 1`] = `Array []`;
exports[`"filename" option should work ("function"): module 1`] = `
"export default function workerCustomWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"worker.custom.worker.js\\");
}
"
`;
exports[`"filename" option should work ("function"): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"filename" option should work ("function"): warnings 1`] = `Array []`;
exports[`"filename" option should work ("string"): errors 1`] = `Array []`;
exports[`"filename" option should work ("string"): module 1`] = `
"export default function workerCustomWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"worker.custom.worker.js\\");
}
"
`;
exports[`"filename" option should work ("string"): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"filename" option should work ("string"): warnings 1`] = `Array []`;
exports[`"filename" option should work and respect the "output.filename" default value option: errors 1`] = `Array []`;
exports[`"filename" option should work and respect the "output.filename" default value option: module 1`] = `
"export default function workerWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"worker.worker.js\\");
}
"
`;
exports[`"filename" option should work and respect the "output.filename" default value option: result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"filename" option should work and respect the "output.filename" default value option: warnings 1`] = `Array []`;
exports[`"filename" option should work and respect the "output.filename" option ("function"): errors 1`] = `Array []`;
exports[`"filename" option should work and respect the "output.filename" option ("function"): module 1`] = `
"export default function workerCustomWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"worker.custom.worker.js\\");
}
"
`;
exports[`"filename" option should work and respect the "output.filename" option ("function"): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"filename" option should work and respect the "output.filename" option ("function"): warnings 1`] = `Array []`;
exports[`"filename" option should work and respect the "output.filename" option ("string"): errors 1`] = `Array []`;
exports[`"filename" option should work and respect the "output.filename" option ("string"): module 1`] = `
"export default function workerCustomWorkerJsWorker() {
return new Worker(__webpack_public_path__ + \\"worker.custom.worker.js\\");
}
"
`;
exports[`"filename" option should work and respect the "output.filename" option ("string"): result 1`] = `"{\\"postMessage\\":true,\\"onmessage\\":true}"`;
exports[`"filename" option should work and respect the "output.filename" option ("string"): warnings 1`] = `Array []`;