Test failing to find cabal version

This commit is contained in:
Timothy Clem
2019-09-23 20:42:44 -07:00
parent fd2c5e7601
commit 012ca92c8e

View File

@@ -80,4 +80,14 @@ describe('find-haskell', () => {
}
expect(thrown).toBe(true);
});
it('findHaskellCabalVersion throws if cannot find any version of ghc', async () => {
let thrown = false;
try {
await findHaskellCabalVersion('9.9.9');
} catch {
thrown = true;
}
expect(thrown).toBe(true);
});
});