mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
decaffeinate: Run post-processing cleanups on SmokeTests.coffee
This commit is contained in:
parent
b6991f5ff9
commit
2057a565ec
1 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
/* eslint-disable
|
||||||
|
no-unused-vars,
|
||||||
|
*/
|
||||||
|
// TODO: This file was created by bulk-decaffeinate.
|
||||||
|
// Fix any style issues and re-enable lint.
|
||||||
/*
|
/*
|
||||||
* decaffeinate suggestions:
|
* decaffeinate suggestions:
|
||||||
* DS101: Remove unnecessary use of Array.from
|
* DS101: Remove unnecessary use of Array.from
|
||||||
|
@ -69,14 +74,14 @@ describe("Running a compile", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return the pdf", function() {
|
it("should return the pdf", function() {
|
||||||
for (let file of Array.from(this.body.compile.outputFiles)) {
|
for (const file of Array.from(this.body.compile.outputFiles)) {
|
||||||
if (file.type === "pdf") { return; }
|
if (file.type === "pdf") { return; }
|
||||||
}
|
}
|
||||||
throw new Error("no pdf returned");
|
throw new Error("no pdf returned");
|
||||||
});
|
});
|
||||||
|
|
||||||
return it("should return the log", function() {
|
return it("should return the log", function() {
|
||||||
for (let file of Array.from(this.body.compile.outputFiles)) {
|
for (const file of Array.from(this.body.compile.outputFiles)) {
|
||||||
if (file.type === "log") { return; }
|
if (file.type === "log") { return; }
|
||||||
}
|
}
|
||||||
throw new Error("no log returned");
|
throw new Error("no log returned");
|
||||||
|
|
Loading…
Reference in a new issue