Skip to content

Commit

Permalink
Fix errors test output for webpack 2.2.1 (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly committed Jan 31, 2017
1 parent 6861e0e commit cc95c0b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"mocha": "^3.1.0",
"phantomjs-prebuilt": "^2.1.2",
"rimraf": "^2.4.2",
"typescript": "^2.1.4",
"typescript": "^2.1.5",
"typings": "^2.0.0",
"webpack": "^2.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion test/comparison-tests/errors/expectedOutput-2.1/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
/* 0 */
/***/ (function(module, exports) {

throw new Error("Module parse failed: C:/source/ts-loader/index.js?{\"silent\":true,\"compilerOptions\":{\"newLine\":\"LF\"}}!/errors/app.ts Unexpected token (1:9)\nYou may need an appropriate loader to handle this file type.\n| var a = == 0;\n| ");
throw new Error("Module parse failed: C:/source/ts-loader/index.js??ref--0!/errors/app.ts Unexpected token (1:9)\nYou may need an appropriate loader to handle this file type.\n| var a = == 0;\n| ");

/***/ })
/******/ ]);
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
/* 0 */
/***/ (function(module, exports) {

throw new Error("Module parse failed: C:/source/ts-loader/index.js?{\"silent\":true,\"compilerOptions\":{\"newLine\":\"LF\"},\"transpileOnly\":true}!/errors.transpile/app.ts Unexpected token (2:9)\nYou may need an appropriate loader to handle this file type.\n| \"use strict\";\n| var a = == 0;\n| ");
throw new Error("Module parse failed: C:/source/ts-loader/index.js??ref--0!/errors.transpile/app.ts Unexpected token (2:9)\nYou may need an appropriate loader to handle this file type.\n| \"use strict\";\n| var a = == 0;\n| ");

/***/ })
/******/ ]);
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Asset Size Chunks Chunk Names
bundle.js 2.84 kB 0 [emitted] main
chunk {0} bundle.js (main) 335 bytes [entry] [rendered]
[0] ./.test/errors/app.ts 335 bytes {0} [built] [failed] [2 errors]
bundle.js 2.77 kB 0 [emitted] main
chunk {0} bundle.js (main) 261 bytes [entry] [rendered]
[0] ./.test/errors/app.ts 261 bytes {0} [built] [failed] [2 errors]

ERROR in ./.test/errors/app.ts
(1,7): error TS1005: '=' expected.

ERROR in ./.test/errors/app.ts
Module parse failed: index.js?{"silent":true,"compilerOptions":{"newLine":"LF"},"transpileOnly":true}!app.ts Unexpected token (2:9)
Module parse failed: index.js??ref--0!app.ts Unexpected token (2:9)
You may need an appropriate loader to handle this file type.
| "use strict";
| var a = == 0;
Expand Down
8 changes: 4 additions & 4 deletions test/comparison-tests/errors/expectedOutput-2.1/output.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Asset Size Chunks Chunk Names
bundle.js 2.79 kB 0 [emitted] main
chunk {0} bundle.js (main) 283 bytes [entry] [rendered]
[0] ./.test/errors/app.ts 283 bytes {0} [built] [failed] [2 errors]
bundle.js 2.74 kB 0 [emitted] main
chunk {0} bundle.js (main) 232 bytes [entry] [rendered]
[0] ./.test/errors/app.ts 232 bytes {0} [built] [failed] [2 errors]

ERROR in ./.test/errors/app.ts
(1,7): error TS1005: '=' expected.

ERROR in ./.test/errors/app.ts
Module parse failed: index.js?{"silent":true,"compilerOptions":{"newLine":"LF"}}!app.ts Unexpected token (1:9)
Module parse failed: index.js??ref--0!app.ts Unexpected token (1:9)
You may need an appropriate loader to handle this file type.
| var a = == 0;
|

0 comments on commit cc95c0b

Please sign in to comment.