Skip to content

Commit

Permalink
lint(systests): lin fix (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
gigalasr committed Nov 25, 2024
1 parent 6c85be1 commit a9c108c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/system-tests/commands.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { assert, describe, test } from 'vitest';
import { npmRun } from './utility/utility'
import { npmRun } from './utility/utility';

describe('commands', () => {
test('flowr as server', async() => {
const output = await npmRun('flowr', '--server');
console.log("OUTPUT: " + output)
console.log('OUTPUT: ' + output);
assert.isTrue(output.includes('Server listening on port'));
});
});
4 changes: 2 additions & 2 deletions test/system-tests/utility/utility.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { $, ProcessPromise, sleep } from 'zx';
import { $, sleep } from 'zx';

export async function repl(input: string[]): Promise<string> {
const proc = $`npm run flowr`.quiet().timeout('30s');
Expand All @@ -20,7 +20,7 @@ export async function repl(input: string[]): Promise<string> {
}

export async function npmRun(cmd: string, args: string): Promise<string> {
const proc = $`npm run ${cmd} -- ${args}`.quiet();
const proc = $`npm run ${cmd} -- ${args}`.quiet();
await sleep('5s');
await proc.kill();
return proc.text();
Expand Down

0 comments on commit a9c108c

Please sign in to comment.