Skip to content

Commit

Permalink
Set different dissolveDelay for mocked neurons to avoid confusion in …
Browse files Browse the repository at this point in the history
…the tests
  • Loading branch information
mstrasinskis committed Nov 6, 2024
1 parent 02c8bc7 commit 98efe61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe("NnsNeuronPageHeader", () => {
createTestNeuron({
id: 3n,
stake: 300_000_000n,
dissolveDelaySeconds: 2000n,
dissolveDelaySeconds: 6000n,
}),
createTestNeuron({
id: 4n,
Expand Down Expand Up @@ -163,7 +163,7 @@ describe("NnsNeuronPageHeader", () => {

await runResolvedPromises();

expect(await po.getNeuronNavigationPo().getPreviousNeuronId()).toBe("3");
expect(await po.getNeuronNavigationPo().getPreviousNeuronId()).toBe("2");
expect(await po.getNeuronNavigationPo().getNextNeuronId()).toBe("4");
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("SnsNeuronPageHeader", () => {
createMockSnsNeuron({
id: [3],
stake: 300_000_000n,
dissolveDelaySeconds: 2000n,
dissolveDelaySeconds: 6000n,
}),
createMockSnsNeuron({
id: [4],
Expand Down Expand Up @@ -179,7 +179,7 @@ describe("SnsNeuronPageHeader", () => {

await runResolvedPromises();

expect(await po.getNeuronNavigationPo().getPreviousNeuronId()).toBe("03");
expect(await po.getNeuronNavigationPo().getPreviousNeuronId()).toBe("02");
expect(await po.getNeuronNavigationPo().getNextNeuronId()).toBe("04");
});

Expand Down

0 comments on commit 98efe61

Please sign in to comment.