mirror of
https://github.com/denoland/deno.git
synced 2025-07-29 08:04:00 +00:00
format
This commit is contained in:
parent
a6f6d0b712
commit
7fb2821937
4 changed files with 19 additions and 15 deletions
|
@ -461,16 +461,24 @@ test(function compilerGetScriptFileNames() {
|
|||
test(function compilerRecompileFlag() {
|
||||
setup();
|
||||
compilerInstance.run("foo/bar.ts", "/root/project");
|
||||
assertEqual(getEmitOutputStack.length, 1, "Expected only a single emitted file.");
|
||||
assertEqual(
|
||||
getEmitOutputStack.length,
|
||||
1,
|
||||
"Expected only a single emitted file."
|
||||
);
|
||||
// running compiler against same file should use cached code
|
||||
compilerInstance.run("foo/bar.ts", "/root/project");
|
||||
assertEqual(getEmitOutputStack.length, 1, "Expected only a single emitted file.");
|
||||
assertEqual(
|
||||
getEmitOutputStack.length,
|
||||
1,
|
||||
"Expected only a single emitted file."
|
||||
);
|
||||
compilerInstance.recompile = true;
|
||||
compilerInstance.run("foo/bar.ts", "/root/project");
|
||||
assertEqual(getEmitOutputStack.length, 2, "Expected two emitted file.");
|
||||
assert(
|
||||
getEmitOutputStack[0] === getEmitOutputStack[1],
|
||||
"Expected same file to be emitted twice."
|
||||
getEmitOutputStack[0] === getEmitOutputStack[1],
|
||||
"Expected same file to be emitted twice."
|
||||
);
|
||||
teardown();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue