Skip to content

Commit 4eedf66

Browse files
author
Luke Wilson
committed
Fails on bad init test
1 parent e9cafd6 commit 4eedf66

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/integration.test.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,16 @@ describe('integration', () => {
9191
throw new Error('Not implemented');
9292
});
9393

94-
it('fails_on_bad_init', async () => {});
94+
it('fails_on_bad_init', async () => {
95+
// Act
96+
const response = vm.instantiate(
97+
mockEnv,
98+
{ creator: { amount: 1000, denom: 'earth' } }, // invalid info message
99+
{ verifier, beneficiary });
100+
101+
// Assert
102+
expect((response.json as { error: string }).error.indexOf('Error parsing')).toBe(0);
103+
});
95104

96105
it('execute_release_works', async () => {});
97106

0 commit comments

Comments
 (0)