MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / mockAuthSuccess

Function mockAuthSuccess

api/src/plugins/auth0.test.ts:130–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 let userinfoSpy: MockInstance;
129
130 const mockAuthSuccess = () => {
131 getAccessTokenFromAuthorizationCodeFlowSpy.mockResolvedValueOnce({
132 token: 'any token'
133 });
134 userinfoSpy.mockResolvedValueOnce(Promise.resolve({ email }));
135 };
136
137 beforeEach(() => {
138 getAccessTokenFromAuthorizationCodeFlowSpy = vi.spyOn(

Callers 1

auth0.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected