[auth debugger] Make the quick flow use the same state machine as the step-by-step flow (#426)
* use state machine in quick flow * clean up test * rm some comments
This commit is contained in:
parent
ec24f7bbbf
commit
7b1299c730
1 changed files with 80 additions and 35 deletions
|
|
@ -207,16 +207,10 @@ describe("AuthDebugger", () => {
|
|||
"https://example.com",
|
||||
);
|
||||
|
||||
// Then should call auth with the server provider
|
||||
expect(mockAuth).toHaveBeenCalled();
|
||||
|
||||
// Check that updateAuthState was called with the right info message
|
||||
expect(updateAuthState).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
statusMessage: {
|
||||
type: "info",
|
||||
message: "Starting OAuth authentication process...",
|
||||
},
|
||||
oauthStep: "authorization_code",
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue