more tests
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
||||
|
||||
// Mock dependencies
|
||||
vi.mock("@welshman/net", () => ({
|
||||
publish: vi.fn(),
|
||||
publish: vi.fn().mockReturnValue({emitter: {on: vi.fn()}}),
|
||||
PublishStatus: {
|
||||
Pending: "pending",
|
||||
Success: "success",
|
||||
@@ -269,8 +269,9 @@ describe("thunkWorker", async () => {
|
||||
|
||||
it("should handle publish failures", async () => {
|
||||
const mockSigner = {
|
||||
sign: vi.fn().mockRejectedValue(new Error("Signing failed")),
|
||||
sign: vi.fn().mockRejectedValue("Signing failed"),
|
||||
}
|
||||
|
||||
vi.mocked(sessionModule.getSigner).mockReturnValue(mockSigner)
|
||||
|
||||
const thunk = makeThunk(mockRequest)
|
||||
|
||||
Reference in New Issue
Block a user