Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 807dbd3

Browse files
will pankiewiczwill pankiewicz
authored andcommitted
fix tests
1 parent 1b28961 commit 807dbd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/common/test/db/queries/EraPoints.unit.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ describe("getSpanEraPoints", () => {
9292

9393
describe("getHistoryDepthEraPoints", () => {
9494
it("should return era points for a given address and current era with depth", async () => {
95+
await EraPointsModel.deleteMany({});
9596
await EraPointsModel.create({
9697
address: "address1",
9798
era: 1,
@@ -115,6 +116,7 @@ describe("getHistoryDepthEraPoints", () => {
115116

116117
describe("getHistoryDepthTotalEraPoints", () => {
117118
it("should return total era points with depth", async () => {
119+
await TotalEraPointsModel.deleteMany({});
118120
await TotalEraPointsModel.create({ era: 1, totalEraPoints: 100 });
119121
await TotalEraPointsModel.create({ era: 2, totalEraPoints: 200 });
120122
await TotalEraPointsModel.create({ era: 3, totalEraPoints: 300 });

0 commit comments

Comments
 (0)