Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Sep 24, 2024
1 parent 5314a67 commit 5cec278
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/create-burner/test/manager/burnerManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,18 @@ describe("BurnerManager", () => {
},
});

// Mock the provider.getChainId() method
burnerManager.provider.getChainId = vi.fn().mockResolvedValue("0x1");

// Initialize BurnerManager with the mocked storage
await burnerManager.init();
expect(Storage.get).toHaveBeenCalledWith("burners_KATANA");
expect(Storage.get).toHaveBeenCalledWith("burners_1");
});

it("generateKeysAndAddress", async () => {
// Mock the provider.getChainId() method
burnerManager.provider.getChainId = vi.fn().mockResolvedValue("0x1");

await burnerManager.init();

const wallet1_index0 = {
Expand Down
2 changes: 1 addition & 1 deletion packages/state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "module",
"scripts": {
"build": "tsup --dts-resolve",
"test": "vitest"
"test": "vitest run"
},
"exports": {
".": {
Expand Down

0 comments on commit 5cec278

Please sign in to comment.