Skip to content

Commit

Permalink
fix rewardsDistributor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kovart committed Feb 12, 2024
1 parent d0bb925 commit 674f27a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions subgraph/src/tests/rewardsDistributor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ describe("Rewards distributor", () => {
test("should handle a reward event on a pool with one delegator and return the correct APY", () => {
//Given
delegatorOne = new Staker(mockDelegatorStakerIdOne);
(delegatorOne as any).account = mockDelegatorStakerIdOne;
(delegatorOne as any).aggregateActiveStake = "";
(delegatorOne as any).aggregateTotalStake = "";
delegatorOne.account = mockDelegatorStakerIdOne;
delegatorOne.nodePools = [mockPoolId];
delegatorOne.save();

Expand Down Expand Up @@ -164,15 +162,11 @@ describe("Rewards distributor", () => {
//Given
delegatorOne = new Staker(mockDelegatorStakerIdOne);
delegatorOne.account = mockDelegatorStakerIdOne;
(delegatorOne as any).aggregateActiveStake = "";
(delegatorOne as any).aggregateTotalStake = "";
delegatorOne.nodePools = [mockPoolId];
delegatorOne.save();

delegatorTwo = new Staker(mockDelegatorStakerIdTwo);
delegatorTwo.account = mockDelegatorStakerIdTwo;
(delegatorTwo as any).aggregateActiveStake = "";
(delegatorTwo as any).aggregateTotalStake = "";
delegatorTwo.nodePools = [mockPoolId];
delegatorTwo.save();

Expand Down

0 comments on commit 674f27a

Please sign in to comment.