Skip to content

Commit

Permalink
Add exception test
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrigis committed Nov 26, 2020
1 parent 5efb192 commit 9d86902
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions external/js/cothority/spec/bevm/contract.spec.ts
Expand Up @@ -67,6 +67,10 @@ ateMutability":"nonpayable","type":"constructor"}]
expect(contract.getMethodAbi("eatCandy")).toEqual(abi[0]);
expect(contract.getMethodAbi("getRemainingCandies")).toEqual(abi[1]);
expect(contract.getMethodAbi("")).toEqual(abi[2]);

// Nonexistent method
expect(() => contract.getMethodAbi("XYZZY")).
toThrowError(/does not exist/);
});

it("should be able to serialize and deserialize", () => {
Expand Down

0 comments on commit 9d86902

Please sign in to comment.