agentsSdk module #102
Annotations
4 errors
|
test
Process completed with exit code 1.
|
|
tests/unit/auth.test.js > Auth Module > logout() > should remove token from axios headers:
src/modules/auth.ts#L89
TypeError: window.location.reload is not a function
❯ Object.logout src/modules/auth.ts:89:27
❯ tests/unit/auth.test.js:195:19
|
|
tests/unit/auth.test.js > Auth Module > login() > should use current URL when nextUrl is not provided:
src/modules/auth.ts#L49
TypeError: Cannot read properties of undefined (reading 'onRedirectToLogin')
❯ Object.redirectToLogin src/modules/auth.ts:49:19
❯ tests/unit/auth.test.js:168:19
|
|
tests/unit/auth.test.js > Auth Module > login() > should redirect to login page with correct URL in browser environment:
src/modules/auth.ts#L49
TypeError: Cannot read properties of undefined (reading 'onRedirectToLogin')
❯ Object.redirectToLogin src/modules/auth.ts:49:19
❯ tests/unit/auth.test.js:148:19
|