Curve conversion tests (#1214)

This commit is contained in:
Jaco
2021-11-19 13:37:43 +02:00
committed by GitHub
parent 8230e3ceac
commit 049e8dfde8
5 changed files with 50 additions and 6 deletions
+2 -2
View File
@@ -10,13 +10,13 @@ describe('assert', (): void => {
it('should throw an error when test is not true', (): void => {
expect(
(): void => assert(false, 'error thrown')
() => assert(false, 'error thrown')
).toThrow(/error thrown/);
});
it('should throw an error when message: () => string', (): void => {
expect(
(): void => assert(false, (): string => 'message from function')
() => assert(false, (): string => 'message from function')
).toThrow(/message from function/);
});
});