@amedia/user 0.14.5 → 0.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -201,12 +201,12 @@ describe('accessCookieRefresher', () => {
|
|
|
201
201
|
);
|
|
202
202
|
jest.spyOn(cookie, 'removeCookie').mockImplementation();
|
|
203
203
|
});
|
|
204
|
-
it('Should remove user access cookie', async () => {
|
|
204
|
+
it('Should remove user access cookie, but not VSTOKEN2 (keep for Nasjonal avisuke)', async () => {
|
|
205
205
|
expect(await accessCookieRefresher()).toEqual([undefined, undefined]);
|
|
206
206
|
expect(authorization.setUserAccessCookie).toHaveBeenCalledTimes(0);
|
|
207
207
|
expect(authorization.setNonUserAccessCookie).toHaveBeenCalledTimes(0);
|
|
208
|
+
expect(cookie.removeCookie).toHaveBeenCalledTimes(1);
|
|
208
209
|
expect(cookie.removeCookie).toHaveBeenNthCalledWith(1, 'VSTOKEN');
|
|
209
|
-
expect(cookie.removeCookie).toHaveBeenNthCalledWith(2, 'VSTOKEN2');
|
|
210
210
|
});
|
|
211
211
|
});
|
|
212
212
|
});
|