-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Hi,
I am trying to mock adalFetch but with no luck. I keep getting,
{ message: 'User login is required', msg: 'login required' }
here is what I have so far
jest.mock('./../config/adal-config', () => ({
authContext: () => jest.fn(),
getToken: () => jest.fn(),
adalApiFetch: () => Promise.resolve({ json: () => mockedReturnedData }),
adalFetch: () => jest.fn()
}));
Any help would be greatly appreciated.
Metadata
Metadata
Assignees
Labels
No labels