fix test case
This commit is contained in:
parent
d8c93b40be
commit
019e35bf26
|
@ -40,6 +40,9 @@ describe("Compiler (caching)", () => {
|
|||
logs.writeFile.push(name, content);
|
||||
files[name] = content.toString("utf-8");
|
||||
callback();
|
||||
},
|
||||
stat(path, callback) {
|
||||
callback(new Error("ENOENT"));
|
||||
}
|
||||
};
|
||||
c.hooks.compilation.tap(
|
||||
|
|
|
@ -39,6 +39,9 @@ describe("Compiler", () => {
|
|||
logs.writeFile.push(name, content);
|
||||
files[name] = content.toString("utf-8");
|
||||
callback();
|
||||
},
|
||||
stat(path, callback) {
|
||||
callback(new Error("ENOENT"));
|
||||
}
|
||||
};
|
||||
c.hooks.compilation.tap(
|
||||
|
|
Loading…
Reference in New Issue