Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoMolinari95 committed Feb 13, 2025
1 parent 4eaccb7 commit 205eea3
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import _ from "lodash";
import { StateFrom, createActor } from "xstate";
import { ItwRemoteMachine, itwRemoteMachine } from "../machine.ts";
import { ItwRemoteRequestPayload } from "../../Utils/itwRemoteTypeUtils.ts";

const T_CLIENT_ID = "clientId";
const T_REQUEST_URI = "https://example.com";
Expand Down Expand Up @@ -54,7 +55,7 @@ describe("itwRemoteMachine", () => {
client_id: T_CLIENT_ID,
request_uri: T_REQUEST_URI,
state: T_STATE
}
} as ItwRemoteRequestPayload
});

expect(actor.getSnapshot().value).toStrictEqual("Failure");
Expand All @@ -72,7 +73,7 @@ describe("itwRemoteMachine", () => {
client_id: T_CLIENT_ID,
request_uri: T_REQUEST_URI,
state: T_STATE
}
} as ItwRemoteRequestPayload
}
} as MachineSnapshot);

Expand All @@ -96,7 +97,7 @@ describe("itwRemoteMachine", () => {
client_id: T_CLIENT_ID,
request_uri: T_REQUEST_URI,
state: T_STATE
}
} as ItwRemoteRequestPayload
}
} as MachineSnapshot);

Expand All @@ -121,7 +122,7 @@ describe("itwRemoteMachine", () => {
client_id: T_CLIENT_ID,
request_uri: T_REQUEST_URI,
state: T_STATE
}
} as ItwRemoteRequestPayload
});

expect(navigateToClaimsDisclosureScreen).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 205eea3

Please sign in to comment.