test: Add unit testing (get-latest-version) (#132)
This commit is contained in:
parent
386980e22b
commit
442aa4dbd4
5 changed files with 80 additions and 21 deletions
|
|
@ -56,7 +56,8 @@ describe('showVersion()', () => {
|
|||
});
|
||||
|
||||
test('return not found', async () => {
|
||||
result = await main.showVersion('gitgit', ['--version']);
|
||||
expect(result.exitcode).not.toBe(0);
|
||||
await expect(
|
||||
main.showVersion('gitgit', ['--version'])
|
||||
).rejects.toThrowError(Error);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue