Skip to content

Commit 2d355d9

Browse files
committed
test: js folder with space
1 parent d851013 commit 2d355d9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("works")

spec/runner-spec.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,19 @@ describe("Runner", () => {
9898

9999
runs(() => expect(this.output).toEqual({ message: `__dirname ${path.resolve("./spec/fixtures")}\n` }))
100100
})
101+
102+
it("folder with space", () => {
103+
runs(() => {
104+
this.output = null
105+
this.runner.onDidWriteToStdout((output) => {
106+
this.output = output
107+
})
108+
this.runner.run(this.command, ["./spec/fixtures/folder with space/test.js"], {}, "unused input")
109+
})
110+
111+
waitsFor(() => this.output !== null, "File should execute", 2000)
112+
113+
runs(() => expect(this.output).toEqual({ message: `works\n` }))
114+
})
101115
})
102116
})

0 commit comments

Comments
 (0)