Skip to content

Commit

Permalink
remove bidimensional arrays from gracePeriodInDays
Browse files Browse the repository at this point in the history
  • Loading branch information
danoctavian committed Oct 4, 2022
1 parent 8d6d502 commit 013792a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/unit/Cover/editProductTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ describe('editProductTypes', function () {

const productTypeId = 0;

const gracePeriodsInDays = [45];
const gracePeriodsInDays = [46];

const productTypeBefore = await cover.productTypes(productTypeId);

const ipfsHash = 'my ipfs hash';

await expect(
cover
.connect(accounts.advisoryBoardMembers[0])
.editProductTypes([productTypeId], [gracePeriodsInDays], [ipfsHash]),
cover.connect(accounts.advisoryBoardMembers[0]).editProductTypes([productTypeId], gracePeriodsInDays, [ipfsHash]),
)
.to.emit(cover, 'ProductTypeSet')
.withArgs(productTypeId, ipfsHash);
Expand Down

0 comments on commit 013792a

Please sign in to comment.