Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 7d1b487

Browse files
evilebottnawimichael-ciniawsky
authored andcommitted
test: update snapshots (#214)
1 parent f66f6f0 commit 7d1b487

File tree

8 files changed

+367
-388
lines changed

8 files changed

+367
-388
lines changed

package-lock.json

Lines changed: 335 additions & 356 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/__snapshots__/all-options.test.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@ exports[`manifest.6afe1bc6685e9ab36c1c.js 1`] = `
4848
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
4949
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
5050
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
51-
\\"0\\": \\"main\\"
51+
0: \\"main\\"
5252
}[chunkId] || chunkId) + \\".\\" + {
53-
\\"0\\": \\"0c220ec66316af2c1b24\\"
53+
0: \\"0c220ec66316af2c1b24\\"
5454
}[chunkId] + \\".js\\";
5555
var timeout = setTimeout(onScriptComplete, 12e4);
56-
script.onerror = script.onload = onScriptComplete;
5756
function onScriptComplete() {
5857
script.onerror = script.onload = null, clearTimeout(timeout);
5958
var chunk = installedChunks[chunkId];
6059
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
6160
installedChunks[chunkId] = void 0);
6261
}
63-
return head.appendChild(script), promise;
62+
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
63+
promise;
6464
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
6565
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
6666
configurable: !1,

test/__snapshots__/cache-options.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
exports[`cache \`false\`: asset main.0c220ec66316af2c1b24.js 1`] = `"webpackJsonp([0],[function(o,n){o.exports=function(){console.log(7)}}],[0]);"`;
44

5-
exports[`cache \`false\`: asset manifest.6afe1bc6685e9ab36c1c.js 1`] = `"!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,l=0,s=[];l<r.length;l++)u=r[l],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(l=0;l<a.length;l++)f=o(o.s=a[l]);return f};var r={},t={1:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName(\\"head\\")[0],a=document.createElement(\\"script\\");a.type=\\"text/javascript\\",a.charset=\\"utf-8\\",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute(\\"nonce\\",o.nc),a.src=o.p+\\"\\"+e+\\".\\"+({0:\\"main\\"}[e]||e)+\\".\\"+{0:\\"0c220ec66316af2c1b24\\"}[e]+\\".js\\";var i=setTimeout(u,12e4);a.onerror=a.onload=u;function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error(\\"Loading chunk \\"+e+\\" failed.\\")),t[e]=void 0)}return c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,\\"a\\",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p=\\"\\",o.oe=function(e){throw console.error(e),e}}([]);"`;
5+
exports[`cache \`false\`: asset manifest.6afe1bc6685e9ab36c1c.js 1`] = `"!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,l=0,s=[];l<r.length;l++)u=r[l],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(l=0;l<a.length;l++)f=o(o.s=a[l]);return f};var r={},t={1:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName(\\"head\\")[0],a=document.createElement(\\"script\\");a.type=\\"text/javascript\\",a.charset=\\"utf-8\\",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute(\\"nonce\\",o.nc),a.src=o.p+\\"\\"+e+\\".\\"+({0:\\"main\\"}[e]||e)+\\".\\"+{0:\\"0c220ec66316af2c1b24\\"}[e]+\\".js\\";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error(\\"Loading chunk \\"+e+\\" failed.\\")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,\\"a\\",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p=\\"\\",o.oe=function(e){throw console.error(e),e}}([]);"`;
66

77
exports[`cache \`false\`: errors 1`] = `Array []`;
88

99
exports[`cache \`false\`: warnings 1`] = `Array []`;
1010

1111
exports[`cache \`string\`: asset main.0c220ec66316af2c1b24.js 1`] = `"webpackJsonp([0],[function(o,n){o.exports=function(){console.log(7)}}],[0]);"`;
1212

13-
exports[`cache \`string\`: asset manifest.6afe1bc6685e9ab36c1c.js 1`] = `"!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,l=0,s=[];l<r.length;l++)u=r[l],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(l=0;l<a.length;l++)f=o(o.s=a[l]);return f};var r={},t={1:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName(\\"head\\")[0],a=document.createElement(\\"script\\");a.type=\\"text/javascript\\",a.charset=\\"utf-8\\",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute(\\"nonce\\",o.nc),a.src=o.p+\\"\\"+e+\\".\\"+({0:\\"main\\"}[e]||e)+\\".\\"+{0:\\"0c220ec66316af2c1b24\\"}[e]+\\".js\\";var i=setTimeout(u,12e4);a.onerror=a.onload=u;function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error(\\"Loading chunk \\"+e+\\" failed.\\")),t[e]=void 0)}return c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,\\"a\\",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p=\\"\\",o.oe=function(e){throw console.error(e),e}}([]);"`;
13+
exports[`cache \`string\`: asset manifest.6afe1bc6685e9ab36c1c.js 1`] = `"!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,l=0,s=[];l<r.length;l++)u=r[l],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(l=0;l<a.length;l++)f=o(o.s=a[l]);return f};var r={},t={1:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName(\\"head\\")[0],a=document.createElement(\\"script\\");a.type=\\"text/javascript\\",a.charset=\\"utf-8\\",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute(\\"nonce\\",o.nc),a.src=o.p+\\"\\"+e+\\".\\"+({0:\\"main\\"}[e]||e)+\\".\\"+{0:\\"0c220ec66316af2c1b24\\"}[e]+\\".js\\";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error(\\"Loading chunk \\"+e+\\" failed.\\")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,\\"a\\",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p=\\"\\",o.oe=function(e){throw console.error(e),e}}([]);"`;
1414

1515
exports[`cache \`string\`: errors 1`] = `Array []`;
1616

1717
exports[`cache \`string\`: warnings 1`] = `Array []`;
1818

1919
exports[`cache \`true\`: asset main.0c220ec66316af2c1b24.js 1`] = `"webpackJsonp([0],[function(o,n){o.exports=function(){console.log(7)}}],[0]);"`;
2020

21-
exports[`cache \`true\`: asset manifest.6afe1bc6685e9ab36c1c.js 1`] = `"!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,l=0,s=[];l<r.length;l++)u=r[l],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(l=0;l<a.length;l++)f=o(o.s=a[l]);return f};var r={},t={1:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName(\\"head\\")[0],a=document.createElement(\\"script\\");a.type=\\"text/javascript\\",a.charset=\\"utf-8\\",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute(\\"nonce\\",o.nc),a.src=o.p+\\"\\"+e+\\".\\"+({0:\\"main\\"}[e]||e)+\\".\\"+{0:\\"0c220ec66316af2c1b24\\"}[e]+\\".js\\";var i=setTimeout(u,12e4);a.onerror=a.onload=u;function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error(\\"Loading chunk \\"+e+\\" failed.\\")),t[e]=void 0)}return c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,\\"a\\",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p=\\"\\",o.oe=function(e){throw console.error(e),e}}([]);"`;
21+
exports[`cache \`true\`: asset manifest.6afe1bc6685e9ab36c1c.js 1`] = `"!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,l=0,s=[];l<r.length;l++)u=r[l],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(l=0;l<a.length;l++)f=o(o.s=a[l]);return f};var r={},t={1:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName(\\"head\\")[0],a=document.createElement(\\"script\\");a.type=\\"text/javascript\\",a.charset=\\"utf-8\\",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute(\\"nonce\\",o.nc),a.src=o.p+\\"\\"+e+\\".\\"+({0:\\"main\\"}[e]||e)+\\".\\"+{0:\\"0c220ec66316af2c1b24\\"}[e]+\\".js\\";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error(\\"Loading chunk \\"+e+\\" failed.\\")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,\\"a\\",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p=\\"\\",o.oe=function(e){throw console.error(e),e}}([]);"`;
2222

2323
exports[`cache \`true\`: cached entry test.js 1`] = `
2424
Array [

test/__snapshots__/ecma.test.js.snap

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ exports[`ecma 5: manifest.js 1`] = `
6868
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
6969
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
7070
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
71-
\\"0\\": \\"main\\"
71+
0: \\"main\\"
7272
}[chunkId] || chunkId) + \\".js\\";
7373
var timeout = setTimeout(onScriptComplete, 12e4);
74-
script.onerror = script.onload = onScriptComplete;
7574
function onScriptComplete() {
7675
script.onerror = script.onload = null, clearTimeout(timeout);
7776
var chunk = installedChunks[chunkId];
7877
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
7978
installedChunks[chunkId] = void 0);
8079
}
81-
return head.appendChild(script), promise;
80+
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
81+
promise;
8282
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
8383
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
8484
configurable: !1,
@@ -172,17 +172,17 @@ exports[`ecma 6: manifest.js 1`] = `
172172
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
173173
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
174174
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
175-
\\"0\\": \\"main\\"
175+
0: \\"main\\"
176176
}[chunkId] || chunkId) + \\".js\\";
177177
var timeout = setTimeout(onScriptComplete, 12e4);
178-
script.onerror = script.onload = onScriptComplete;
179178
function onScriptComplete() {
180179
script.onerror = script.onload = null, clearTimeout(timeout);
181180
var chunk = installedChunks[chunkId];
182181
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
183182
installedChunks[chunkId] = void 0);
184183
}
185-
return head.appendChild(script), promise;
184+
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
185+
promise;
186186
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
187187
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
188188
configurable: !1,
@@ -254,17 +254,17 @@ exports[`ecma 7: manifest.js 1`] = `
254254
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
255255
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
256256
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
257-
\\"0\\": \\"main\\"
257+
0: \\"main\\"
258258
}[chunkId] || chunkId) + \\".js\\";
259259
var timeout = setTimeout(onScriptComplete, 12e4);
260-
script.onerror = script.onload = onScriptComplete;
261260
function onScriptComplete() {
262261
script.onerror = script.onload = null, clearTimeout(timeout);
263262
var chunk = installedChunks[chunkId];
264263
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
265264
installedChunks[chunkId] = void 0);
266265
}
267-
return head.appendChild(script), promise;
266+
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
267+
promise;
268268
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
269269
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
270270
configurable: !1,
@@ -341,17 +341,17 @@ exports[`ecma 8: manifest.js 1`] = `
341341
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
342342
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
343343
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
344-
\\"0\\": \\"main\\"
344+
0: \\"main\\"
345345
}[chunkId] || chunkId) + \\".js\\";
346346
var timeout = setTimeout(onScriptComplete, 12e4);
347-
script.onerror = script.onload = onScriptComplete;
348347
function onScriptComplete() {
349348
script.onerror = script.onload = null, clearTimeout(timeout);
350349
var chunk = installedChunks[chunkId];
351350
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
352351
installedChunks[chunkId] = void 0);
353352
}
354-
return head.appendChild(script), promise;
353+
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
354+
promise;
355355
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
356356
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
357357
configurable: !1,
@@ -436,17 +436,17 @@ exports[`import-export: manifest.js 1`] = `
436436
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
437437
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
438438
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
439-
\\"0\\": \\"main\\"
439+
0: \\"main\\"
440440
}[chunkId] || chunkId) + \\".js\\";
441441
var timeout = setTimeout(onScriptComplete, 12e4);
442-
script.onerror = script.onload = onScriptComplete;
443442
function onScriptComplete() {
444443
script.onerror = script.onload = null, clearTimeout(timeout);
445444
var chunk = installedChunks[chunkId];
446445
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
447446
installedChunks[chunkId] = void 0);
448447
}
449-
return head.appendChild(script), promise;
448+
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
449+
promise;
450450
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
451451
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
452452
configurable: !1,

0 commit comments

Comments
 (0)