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 5f80046
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-harness/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ describe('harness', () => {

afterAll(() => tmpFileHandle.removeCallback(undefined, undefined, undefined, undefined));

const testText = `${document}${os.EOL}${parsed.test}`;
const testText = `${file}${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 5f80046

Please sign in to comment.