Skip to content

Commit

Permalink
fix: add a new assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed Feb 13, 2020
1 parent 07e1fb2 commit f8981b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/__tests__/Context.ts
Expand Up @@ -119,7 +119,11 @@ describe('Context Class', () => {
polymeshApi: apiPromise.getMockInstance(),
});

context.setPair('012');
sinon.assert.calledOnce(keyringGetPairMock);
try {
context.setPair('012');
sinon.assert.calledOnce(keyringGetPairMock);
} catch (e) {
sinon.assert.fail();
}
});
});

0 comments on commit f8981b7

Please sign in to comment.