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

Commit

Permalink
test: update snapshots (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored and michael-ciniawsky committed Jan 27, 2018
1 parent f66f6f0 commit 7d1b487
Show file tree
Hide file tree
Showing 8 changed files with 367 additions and 388 deletions.
691 changes: 335 additions & 356 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions test/__snapshots__/all-options.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ exports[`manifest.6afe1bc6685e9ab36c1c.js 1`] = `
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
\\"0\\": \\"main\\"
0: \\"main\\"
}[chunkId] || chunkId) + \\".\\" + {
\\"0\\": \\"0c220ec66316af2c1b24\\"
0: \\"0c220ec66316af2c1b24\\"
}[chunkId] + \\".js\\";
var timeout = setTimeout(onScriptComplete, 12e4);
script.onerror = script.onload = onScriptComplete;
function onScriptComplete() {
script.onerror = script.onload = null, clearTimeout(timeout);
var chunk = installedChunks[chunkId];
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
installedChunks[chunkId] = void 0);
}
return head.appendChild(script), promise;
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
promise;
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
configurable: !1,
Expand Down
6 changes: 3 additions & 3 deletions test/__snapshots__/cache-options.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

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

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}}([]);"`;
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}}([]);"`;

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

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

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

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}}([]);"`;
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}}([]);"`;

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

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

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

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}}([]);"`;
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}}([]);"`;

exports[`cache \`true\`: cached entry test.js 1`] = `
Array [
Expand Down
30 changes: 15 additions & 15 deletions test/__snapshots__/ecma.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ exports[`ecma 5: manifest.js 1`] = `
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
\\"0\\": \\"main\\"
0: \\"main\\"
}[chunkId] || chunkId) + \\".js\\";
var timeout = setTimeout(onScriptComplete, 12e4);
script.onerror = script.onload = onScriptComplete;
function onScriptComplete() {
script.onerror = script.onload = null, clearTimeout(timeout);
var chunk = installedChunks[chunkId];
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
installedChunks[chunkId] = void 0);
}
return head.appendChild(script), promise;
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
promise;
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
configurable: !1,
Expand Down Expand Up @@ -172,17 +172,17 @@ exports[`ecma 6: manifest.js 1`] = `
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
\\"0\\": \\"main\\"
0: \\"main\\"
}[chunkId] || chunkId) + \\".js\\";
var timeout = setTimeout(onScriptComplete, 12e4);
script.onerror = script.onload = onScriptComplete;
function onScriptComplete() {
script.onerror = script.onload = null, clearTimeout(timeout);
var chunk = installedChunks[chunkId];
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
installedChunks[chunkId] = void 0);
}
return head.appendChild(script), promise;
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
promise;
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
configurable: !1,
Expand Down Expand Up @@ -254,17 +254,17 @@ exports[`ecma 7: manifest.js 1`] = `
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
\\"0\\": \\"main\\"
0: \\"main\\"
}[chunkId] || chunkId) + \\".js\\";
var timeout = setTimeout(onScriptComplete, 12e4);
script.onerror = script.onload = onScriptComplete;
function onScriptComplete() {
script.onerror = script.onload = null, clearTimeout(timeout);
var chunk = installedChunks[chunkId];
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
installedChunks[chunkId] = void 0);
}
return head.appendChild(script), promise;
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
promise;
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
configurable: !1,
Expand Down Expand Up @@ -341,17 +341,17 @@ exports[`ecma 8: manifest.js 1`] = `
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
\\"0\\": \\"main\\"
0: \\"main\\"
}[chunkId] || chunkId) + \\".js\\";
var timeout = setTimeout(onScriptComplete, 12e4);
script.onerror = script.onload = onScriptComplete;
function onScriptComplete() {
script.onerror = script.onload = null, clearTimeout(timeout);
var chunk = installedChunks[chunkId];
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
installedChunks[chunkId] = void 0);
}
return head.appendChild(script), promise;
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
promise;
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
configurable: !1,
Expand Down Expand Up @@ -436,17 +436,17 @@ exports[`import-export: manifest.js 1`] = `
script.type = \\"text/javascript\\", script.charset = \\"utf-8\\", script.async = !0, script.timeout = 12e4,
__webpack_require__.nc && script.setAttribute(\\"nonce\\", __webpack_require__.nc),
script.src = __webpack_require__.p + \\"\\" + chunkId + \\".\\" + ({
\\"0\\": \\"main\\"
0: \\"main\\"
}[chunkId] || chunkId) + \\".js\\";
var timeout = setTimeout(onScriptComplete, 12e4);
script.onerror = script.onload = onScriptComplete;
function onScriptComplete() {
script.onerror = script.onload = null, clearTimeout(timeout);
var chunk = installedChunks[chunkId];
0 !== chunk && (chunk && chunk[1](new Error(\\"Loading chunk \\" + chunkId + \\" failed.\\")),
installedChunks[chunkId] = void 0);
}
return head.appendChild(script), promise;
return script.onerror = script.onload = onScriptComplete, head.appendChild(script),
promise;
}, __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
configurable: !1,
Expand Down
Loading

0 comments on commit 7d1b487

Please sign in to comment.