Skip to content

Commit

Permalink
Do not snapshot output -- issues with posix vs win32
Browse files Browse the repository at this point in the history
cspell:ignore posix
  • Loading branch information
Jason3S committed Dec 5, 2019
1 parent 9402b67 commit 3e96bed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 65 deletions.
56 changes: 0 additions & 56 deletions packages/cspell-tools/src/__snapshots__/app.test.ts.snap

This file was deleted.

9 changes: 0 additions & 9 deletions packages/cspell-tools/src/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ describe('Validate the application', () => {
const args = argv('compile-trie', '-n', path.join(pathSamples, 'cities.txt'), '-o', pathTemp);
await expect(app.run(commander, args)).resolves.toBeUndefined();
expect(log).toHaveBeenCalled();
const output = normalizeLogOutput(log.mock.calls);
expect(output).toMatchSnapshot();
log.mockRestore();
});

Expand All @@ -32,8 +30,6 @@ describe('Validate the application', () => {
const args = argv('compile', '-n', path.join(pathSamples, 'cities.txt'), '-o', pathTemp);
await expect(app.run(commander, args)).resolves.toBeUndefined();
expect(log).toHaveBeenCalled();
const output = normalizeLogOutput(log.mock.calls);
expect(output).toMatchSnapshot();
log.mockRestore();
});

Expand Down Expand Up @@ -62,8 +58,3 @@ describe('Validate the application', () => {
});

});

function normalizeLogOutput(calls: string[][]): string[][] {
const root = projectRoot.toString();
return calls.map(a => a.map(v => v.replace(root, '.')));
}

0 comments on commit 3e96bed

Please sign in to comment.