Skip to content

Commit

Permalink
chore: revise long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Sep 29, 2018
1 parent 0fb0daa commit d4cd76a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/binCases/output/output-library-many/stdin.js
@@ -1,14 +1,14 @@
"use strict";

const fs = require("fs");
const path = require("path");
const { readFileSync } = require("fs");
const { resolve } = require("path");

module.exports = function testAssertions(code, stdout, stderr) {
expect(code).toBe(0);
expect(stdout).toEqual(expect.anything());
expect(stdout[7]).toMatch(/index\.js.*\{0\}/);
expect(stderr).toHaveLength(0);

const output = fs.readFileSync(path.join(__dirname, "../../../js/bin/output/output-library-many/main.js"), "utf-8");
const outputPath = resolve("test", "js", "bin", "output", "output-library-many", "main.js");
const output = readFileSync(outputPath, "utf-8");
expect(output).toContain("window.key1=window.key1||{},window.key1.key2=function");
};
8 changes: 4 additions & 4 deletions test/binCases/output/output-library-single/stdin.js
@@ -1,14 +1,14 @@
"use strict";

const fs = require("fs");
const path = require("path");
const { readFileSync } = require("fs");
const { resolve } = require("path");

module.exports = function testAssertions(code, stdout, stderr) {
expect(code).toBe(0);
expect(stdout).toEqual(expect.anything());
expect(stdout[7]).toMatch(/index\.js.*\{0\}/);
expect(stderr).toHaveLength(0);

const output = fs.readFileSync(path.join(__dirname, "../../../js/bin/output/output-library-single/main.js"), "utf-8");
const outputPath = resolve("test", "js", "bin", "output", "output-library-single", "main.js");
const output = readFileSync(outputPath, "utf-8");
expect(output).toContain("window.key1=function");
};

0 comments on commit d4cd76a

Please sign in to comment.