mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 15:51:00 +00:00
test(native): fix the sign-in handoff tests' quoting and formatting
This commit is contained in:
@@ -47,7 +47,9 @@ describe('handoffUrl', () => {
|
||||
it('starts at the server page in front of the hand-off page, with the challenge and an optional start', () => {
|
||||
// Under /api, which every TREK service worker passes to the server: an older
|
||||
// version's worker must not answer the hand-off page from its cache.
|
||||
expect(handoffUrl('https://trek.example.com', 'c')).toBe('https://trek.example.com/api/auth/native/start?challenge=c');
|
||||
expect(handoffUrl('https://trek.example.com', 'c')).toBe(
|
||||
'https://trek.example.com/api/auth/native/start?challenge=c'
|
||||
);
|
||||
expect(handoffUrl('https://trek.example.com', 'c', 'oidc')).toBe(
|
||||
'https://trek.example.com/api/auth/native/start?challenge=c&start=oidc'
|
||||
);
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import { afterEach, describe, expect, it } from 'vitest';
|
||||
import { BROWSER_SIGN_IN_KEY, BROWSER_SIGN_IN_TTL_MS, browserSignInRunning, endBrowserSignIn } from './browserSignInFlag';
|
||||
import {
|
||||
BROWSER_SIGN_IN_KEY,
|
||||
BROWSER_SIGN_IN_TTL_MS,
|
||||
browserSignInRunning,
|
||||
endBrowserSignIn,
|
||||
} from './browserSignInFlag';
|
||||
|
||||
afterEach(() => localStorage.clear());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user