Skip to content

Commit

Permalink
Fix borked test.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneseymour committed Feb 10, 2021
1 parent 8af0404 commit 0ae7102
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Side Public License, v 1.
*/

import os from 'os';
import { resolve } from 'path';
import execa from 'execa';
import shell from 'shelljs';
Expand Down Expand Up @@ -39,12 +38,10 @@ describe('Team Assignment', () => {
it(`should strip the prefix and still drill down through the fs`, async () => {
const { stdout } = await execa('grep', ['tre', teamAssignmentsPath], { cwd: ROOT_DIR });
const lines = stdout.split('\n').filter((line) => !line.includes('/target'));
expect(lines).toEqual(
[
'src/dev/code_coverage/ingest_coverage/integration_tests/fixtures/test_plugin/server/index.ts kibana-tre',
'src/dev/code_coverage/ingest_coverage/integration_tests/fixtures/test_plugin/server/plugin.ts kibana-tre',
].join(os.EOL)
);
expect(lines).toEqual([
'src/dev/code_coverage/ingest_coverage/integration_tests/fixtures/test_plugin/server/index.ts kibana-tre',
'src/dev/code_coverage/ingest_coverage/integration_tests/fixtures/test_plugin/server/plugin.ts kibana-tre',
]);
});
});
});

0 comments on commit 0ae7102

Please sign in to comment.