Skip to content

Commit

Permalink
πŸ‘¨β€πŸ­ Add a test for single quote in revert message (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp committed Jul 28, 2022
1 parent 382de5b commit 4e0598e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions waffle-chai/test/matchers/revertedWithTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,21 +212,6 @@ export const revertedWithTest = (provider: TestProvider, options: RevertedWithTe
.to.be.revertedWith('asset doesn\'t have feed');
await expect(matchers.requireFalseWithSingleQuote())
.to.be.revertedWith('asset doesn\'t have feed');

await expect(
expect(matchers.requireFalseWithSingleQuote())
.to.be.revertedWith('blablabla\'t have feed')
).to.be.eventually.rejected;

await expect(
expect(matchers.requireFalseWithSingleQuote())
.to.be.revertedWith('asset doesn\'blablabla')
).to.be.eventually.rejected;

await expect(
expect(matchers.requireFalseWithSingleQuote())
.to.be.revertedWith('asset doesn\'blablabla')
).to.be.eventually.rejected;
});

it('Catches wrong message with single quote in it', async () => {
Expand Down

0 comments on commit 4e0598e

Please sign in to comment.