Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
barrasso committed Jul 22, 2024
1 parent b57abd1 commit 752cba5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/contracts/Liquidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ contract('Liquidator', accounts => {
'Must liquidate using V3'
);
});
it('when liquidateSelf() is invoked, it reverts with must liquidate using V3', async () => {
await assert.revert(synthetix.liquidateSelf({ from: alice }), 'Must liquidate using V3');
});
});
describe('protected methods', () => {
describe('only internal contracts can call', () => {
Expand Down

0 comments on commit 752cba5

Please sign in to comment.