Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 655160a

Browse files
PR Comments
1 parent d6cd4b0 commit 655160a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class Queue<T> implements IQueue<T> {
44
private future: IFuture<void>;
55

66
public constructor(private items?: T[]) {
7-
items = items === undefined ? [] : items;
7+
this.items = this.items === undefined ? [] : this.items;
88
}
99

1010
public enqueue(item: T): void {

test-scripts/istanbul.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
const childProcess = require("child_process");
44
const path = require("path");
5-
const pathToIstanbul = path.join(__dirname, "..", "node_modules", "istanbul", "lib", "cli.js");
6-
const pathToMocha = path.join(__dirname, "..", "node_modules", "mocha", "bin", "_mocha");
5+
const pathToNodeModules = path.join(__dirname, "..", "node_modules");
6+
const pathToIstanbul = path.join(pathToNodeModules, "istanbul", "lib", "cli.js");
7+
const pathToMocha = path.join(pathToNodeModules, "mocha", "bin", "_mocha");
78

89
const istanbulArgs = [ pathToIstanbul, "cover", pathToMocha ];
910

1011
const nodeArgs = require("./node-args").getNodeArgs();
1112

1213
const args = nodeArgs.concat(istanbulArgs);
1314

14-
const nodeProcess = childProcess.spawn("node", args, { stdio: "inherit"});
15+
const nodeProcess = childProcess.spawn("node", args, { stdio: "inherit" });
1516
nodeProcess.on("close", (code) => {
1617
// We need this handler so if any test fails, we'll exit with same exit code as istanbul.
1718
process.exit(code);

test-scripts/mocha.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const nodeArgs = require("./node-args").getNodeArgs();
88

99
const args = nodeArgs.concat(pathToMocha);
1010

11-
const nodeProcess = childProcess.spawn("node", args, { stdio: "inherit"});
11+
const nodeProcess = childProcess.spawn("node", args, { stdio: "inherit" });
1212
nodeProcess.on("close", (code) => {
1313
// We need this handler so if any test fails, we'll exit with same exit code as mocha.
1414
process.exit(code);

0 commit comments

Comments
 (0)