openlend/test/rewards/initialize.spec.ts
2024-08-24 01:04:58 +03:00

12 lines
441 B
TypeScript

import { makeSuite, TestEnv } from '../helpers/make-suite';
import { ZERO_ADDRESS } from '@aave/deploy-v3';
const { expect } = require('chai');
makeSuite('AaveIncentivesControllerV2 initialize', (testEnv: TestEnv) => {
it('Tries to call initialize second time, should be reverted', async () => {
const { rewardsController } = testEnv;
await expect(rewardsController.initialize(ZERO_ADDRESS)).to.be.reverted;
});
});