Skip to content

Commit

Permalink
test: updated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Mar 8, 2018
1 parent 6e57773 commit aca0cf5
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 49 deletions.
120 changes: 72 additions & 48 deletions packages/webpack/test/__snapshots__/webpack.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ exports[`/webpack.js should generate correct builds when files change 1`] = `
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
Expand All @@ -274,35 +279,38 @@ exports[`/webpack.js should generate correct builds when files change 1`] = `
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = \\"\\";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ return __webpack_require__(__webpack_require__.s = \\"./packages/webpack/test/specimens/change.js\\");
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/******/ ({
/***/ \\"./packages/webpack/test/output/changed.css\\":
/*!**************************************************!*\\\\
!*** ./packages/webpack/test/output/changed.css ***!
\\\\**************************************************/
/*! exports provided: default, one */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
\\"use strict\\";
Object.defineProperty(__webpack_exports__, \\"__esModule\\", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__output_changed_css__ = __webpack_require__(1);
console.log(__WEBPACK_IMPORTED_MODULE_0__output_changed_css__[\\"a\\" /* default */]);
eval(\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\"one\\\\\\", function() { return one; });\\\\n/* harmony default export */ __webpack_exports__[\\\\\\"default\\\\\\"] = ({\\\\n \\\\\\"one\\\\\\": \\\\\\"one\\\\\\"\\\\n});\\\\nvar one = \\\\\\"one\\\\\\";\\\\n\\\\n//# sourceURL=webpack:///./packages/webpack/test/output/changed.css?\\");
/***/ }),
/* 1 */
/***/ \\"./packages/webpack/test/specimens/change.js\\":
/*!***************************************************!*\\\\
!*** ./packages/webpack/test/specimens/change.js ***!
\\\\***************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
\\"use strict\\";
/* unused harmony export one */
/* harmony default export */ __webpack_exports__[\\"a\\"] = ({
\\"one\\": \\"one\\"
});
var one = \\"one\\";
eval(\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _output_changed_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../output/changed.css */ \\\\\\"./packages/webpack/test/output/changed.css\\\\\\");\\\\n\\\\n\\\\nconsole.log(_output_changed_css__WEBPACK_IMPORTED_MODULE_0__[\\\\\\"default\\\\\\"]);\\\\n\\\\n\\\\n//# sourceURL=webpack:///./packages/webpack/test/specimens/change.js?\\");
/***/ })
/******/ ]);"
/******/ });"
`;

exports[`/webpack.js should generate correct builds when files change 2`] = `
Expand Down Expand Up @@ -357,6 +365,11 @@ exports[`/webpack.js should generate correct builds when files change 3`] = `
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
Expand All @@ -372,35 +385,38 @@ exports[`/webpack.js should generate correct builds when files change 3`] = `
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = \\"\\";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ return __webpack_require__(__webpack_require__.s = \\"./packages/webpack/test/specimens/change.js\\");
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/******/ ({
/***/ \\"./packages/webpack/test/output/changed.css\\":
/*!**************************************************!*\\\\
!*** ./packages/webpack/test/output/changed.css ***!
\\\\**************************************************/
/*! exports provided: default, two */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
\\"use strict\\";
Object.defineProperty(__webpack_exports__, \\"__esModule\\", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__output_changed_css__ = __webpack_require__(1);
console.log(__WEBPACK_IMPORTED_MODULE_0__output_changed_css__[\\"a\\" /* default */]);
eval(\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\"two\\\\\\", function() { return two; });\\\\n/* harmony default export */ __webpack_exports__[\\\\\\"default\\\\\\"] = ({\\\\n \\\\\\"two\\\\\\": \\\\\\"two\\\\\\"\\\\n});\\\\nvar two = \\\\\\"two\\\\\\";\\\\n\\\\n//# sourceURL=webpack:///./packages/webpack/test/output/changed.css?\\");
/***/ }),
/* 1 */
/***/ \\"./packages/webpack/test/specimens/change.js\\":
/*!***************************************************!*\\\\
!*** ./packages/webpack/test/specimens/change.js ***!
\\\\***************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
\\"use strict\\";
/* unused harmony export two */
/* harmony default export */ __webpack_exports__[\\"a\\"] = ({
\\"two\\": \\"two\\"
});
var two = \\"two\\";
eval(\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _output_changed_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../output/changed.css */ \\\\\\"./packages/webpack/test/output/changed.css\\\\\\");\\\\n\\\\n\\\\nconsole.log(_output_changed_css__WEBPACK_IMPORTED_MODULE_0__[\\\\\\"default\\\\\\"]);\\\\n\\\\n\\\\n//# sourceURL=webpack:///./packages/webpack/test/specimens/change.js?\\");
/***/ })
/******/ ]);"
/******/ });"
`;

exports[`/webpack.js should generate correct builds when files change 4`] = `
Expand Down Expand Up @@ -455,6 +471,11 @@ exports[`/webpack.js should generate correct builds when files change 5`] = `
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
Expand All @@ -470,35 +491,38 @@ exports[`/webpack.js should generate correct builds when files change 5`] = `
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = \\"\\";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ return __webpack_require__(__webpack_require__.s = \\"./packages/webpack/test/specimens/change.js\\");
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/******/ ({
/***/ \\"./packages/webpack/test/output/changed.css\\":
/*!**************************************************!*\\\\
!*** ./packages/webpack/test/output/changed.css ***!
\\\\**************************************************/
/*! exports provided: default, three */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
\\"use strict\\";
Object.defineProperty(__webpack_exports__, \\"__esModule\\", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__output_changed_css__ = __webpack_require__(1);
console.log(__WEBPACK_IMPORTED_MODULE_0__output_changed_css__[\\"a\\" /* default */]);
eval(\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\"three\\\\\\", function() { return three; });\\\\n/* harmony default export */ __webpack_exports__[\\\\\\"default\\\\\\"] = ({\\\\n \\\\\\"three\\\\\\": \\\\\\"three\\\\\\"\\\\n});\\\\nvar three = \\\\\\"three\\\\\\";\\\\n\\\\n//# sourceURL=webpack:///./packages/webpack/test/output/changed.css?\\");
/***/ }),
/* 1 */
/***/ \\"./packages/webpack/test/specimens/change.js\\":
/*!***************************************************!*\\\\
!*** ./packages/webpack/test/specimens/change.js ***!
\\\\***************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
\\"use strict\\";
/* unused harmony export three */
/* harmony default export */ __webpack_exports__[\\"a\\"] = ({
\\"three\\": \\"three\\"
});
var three = \\"three\\";
eval(\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _output_changed_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../output/changed.css */ \\\\\\"./packages/webpack/test/output/changed.css\\\\\\");\\\\n\\\\n\\\\nconsole.log(_output_changed_css__WEBPACK_IMPORTED_MODULE_0__[\\\\\\"default\\\\\\"]);\\\\n\\\\n\\\\n//# sourceURL=webpack:///./packages/webpack/test/specimens/change.js?\\");
/***/ })
/******/ ]);"
/******/ });"
`;

exports[`/webpack.js should generate correct builds when files change 6`] = `
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack/test/webpack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ describe("/webpack.js", () => {
});
});

it.skip("should generate correct builds when files change", () => {
it("should generate correct builds when files change", () => {
var changed = "./packages/webpack/test/output/changed.css",
compiler;

Expand Down

0 comments on commit aca0cf5

Please sign in to comment.