Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into feat-remove-extra…
Browse files Browse the repository at this point in the history
…-wasm-decodings
  • Loading branch information
xtuc committed May 10, 2018
2 parents 91b6480 + 0eeea0f commit 3be112b
Show file tree
Hide file tree
Showing 10 changed files with 194 additions and 52 deletions.
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -58,6 +58,8 @@
"less-loader": "^4.0.3",
"lodash": "^4.17.4",
"prettier": "^1.11.1",
"pug": "^2.0.3",
"pug-loader": "^2.4.0",
"raw-loader": "~0.5.0",
"react": "^15.2.1",
"react-dom": "^15.2.1",
Expand Down
4 changes: 2 additions & 2 deletions test/TestCases.template.js
Expand Up @@ -139,8 +139,8 @@ const describeCases = config => {
loader: "coffee-loader"
},
{
test: /\.jade$/,
loader: "jade-loader"
test: /\.pug/,
loader: "pug-loader"
}
]
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions test/cases/loaders/jade-loader/index.js

This file was deleted.

4 changes: 4 additions & 0 deletions test/cases/loaders/pug-loader/index.js
@@ -0,0 +1,4 @@
it("should handle the pug loader correctly", function() {
expect(require("!pug-loader?self!../_resources/template.pug")({ abc: "abc" })).toBe("<p>selfabc</p><h1>included</h1>");
expect(require("../_resources/template.pug")({ abc: "abc" })).toBe("<p>abc</p><h1>included</h1>");
});
2 changes: 1 addition & 1 deletion test/cases/resolving/context/index.js
Expand Up @@ -5,7 +5,7 @@ it("should resolve loaders relative to require", function() {
query: "?query",
prev: "module.exports = \"error\";"
});
expect(require("!./loaders/queryloader?query!./node_modules/subcontent/" + test + ".jade")).toEqual({
expect(require("!./loaders/queryloader?query!./node_modules/subcontent/" + test + ".pug")).toEqual({
resourceQuery: "",
query: "?query",
prev: "xyz: abc"
Expand Down

0 comments on commit 3be112b

Please sign in to comment.