decaffeinate: Run post-processing cleanups on SmokeTests.coffee

This commit is contained in:
decaffeinate 2020-02-25 17:03:39 +01:00 committed by mserranom
parent b6991f5ff9
commit 2057a565ec

View file

@ -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");