Skip to content

Commit

Permalink
fix: added severity and penalty to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhempujar committed Oct 11, 2022
1 parent c483633 commit f4a9884
Show file tree
Hide file tree
Showing 6 changed files with 1,565 additions and 1,309 deletions.
6 changes: 4 additions & 2 deletions test/unit/Details.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const baseSLAConfig = {
periodType: PERIOD_TYPE.WEEKLY,
initialPeriodId: 0,
finalPeriodId: 1,
extraData: [SENetworkNamesBytes32[SENetworks.ONE]],
severity: [],
penalty: [],
leverage: 1,
};

Expand Down Expand Up @@ -83,7 +84,8 @@ const setup = deployments.createFixture(async () => {
baseSLAConfig.initialPeriodId,
baseSLAConfig.finalPeriodId,
'dummy-ipfs-hash',
baseSLAConfig.extraData,
baseSLAConfig.severity,
baseSLAConfig.penalty,
baseSLAConfig.leverage
);

Expand Down
6 changes: 4 additions & 2 deletions test/unit/SLA.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ const baseSLAConfig = {
periodType: PERIOD_TYPE.DAILY,
initialPeriodId: 0,
finalPeriodId: 1,
extraData: [SENetworkNamesBytes32[SENetworks.ONE]],
severity: [],
penalty: [],
leverage: leverage,
};
const mintAmount = '1000000';
Expand Down Expand Up @@ -82,7 +83,8 @@ const setup = deployments.createFixture(async () => {
baseSLAConfig.initialPeriodId,
baseSLAConfig.finalPeriodId,
'dummy-ipfs-hash',
baseSLAConfig.extraData,
baseSLAConfig.severity,
baseSLAConfig.penalty,
baseSLAConfig.leverage
);

Expand Down

0 comments on commit f4a9884

Please sign in to comment.