Skip to content

Commit

Permalink
Update test-harness/index.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Karol Maciaszek <[email protected]>
  • Loading branch information
XVincentX and karol-maciaszek committed Oct 21, 2019
1 parent 58b3fea commit 88c44c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-harness/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ describe('harness', () => {
const testText = `${document}${os.EOL}${parsed.test}`;

test(testText, done => {
const [command, ...args] = parsed.command.split(' ').map(t => t.trim());
const serverArgs = parsed.server.split(' ').map(t => t.replace('${document}', tmpFileHandle.name));
const [command, ...args] = parsed.command.split(/ +/).map(t => t.trim());
const serverArgs = parsed.server.split(/ +/).map(t => t.replace('${document}', tmpFileHandle.name));
prismMockProcessHandle = spawn(path.join(__dirname, '../cli-binaries/prism-cli'), serverArgs);

prismMockProcessHandle.stdout.pipe(split2()).on('data', (line: string) => {
Expand Down

0 comments on commit 88c44c8

Please sign in to comment.