Skip to content

Commit

Permalink
Add unit test for trace
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Jan 27, 2018
1 parent 4d5745e commit c947b2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/application.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ describe('Validate the Application', function() {
expect(result.files).equals(1);
});
});

it('Tests running the trace command', async () => {
const result = await App.trace(['apple'], {});
expect(result.length).to.be.greaterThan(2);

const foundIn = result.filter(r => r.found).map(r => r.dictName);
expect(foundIn).to.contain('en_US.trie.gz');
});
});


Expand Down

0 comments on commit c947b2b

Please sign in to comment.