mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-24 10:47:28 +01:00
test: Add unit testing (get-latest-version) (#132)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user