Skip to content

Commit

Permalink
test(backend,remix): Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
desiprisg authored and dimkl committed Aug 4, 2023
1 parent e8a88a2 commit 2046d45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 15 additions & 0 deletions packages/backend/src/tokens/request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ function assertSignedOut(
isUnknown: false,
isSatellite: false,
signInUrl: '',
signUpUrl: '',
afterSignInUrl: '',
afterSignUpUrl: '',
domain: '',
message: '',
toAuth: {},
Expand Down Expand Up @@ -72,6 +75,9 @@ function assertInterstitial(
isUnknown: false,
isSatellite: false,
signInUrl: '',
signUpUrl: '',
afterSignInUrl: '',
afterSignUpUrl: '',
domain: '',
toAuth: {},
...expectedState,
Expand All @@ -88,6 +94,9 @@ function assertUnknown(assert, requestState: RequestState, reason: AuthReason) {
isUnknown: true,
isSatellite: false,
signInUrl: '',
signUpUrl: '',
afterSignInUrl: '',
afterSignUpUrl: '',
domain: '',
reason,
toAuth: {},
Expand Down Expand Up @@ -128,6 +137,9 @@ function assertSignedIn(
isUnknown: false,
isSatellite: false,
signInUrl: '',
signUpUrl: '',
afterSignInUrl: '',
afterSignUpUrl: '',
domain: '',
...expectedState,
});
Expand All @@ -150,6 +162,9 @@ export default (QUnit: QUnit) => {
skipJwksCache: true,
isSatellite: false,
signInUrl: '',
signUpUrl: '',
afterSignInUrl: '',
afterSignUpUrl: '',
domain: '',
searchParams: new URLSearchParams(),
} satisfies AuthenticateRequestOptions;
Expand Down
1 change: 0 additions & 1 deletion packages/remix/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { RemixClerkProviderProps } from './client';
import type { ClerkState } from './client/types';
import { invalidClerkStatePropError, noClerkStateError } from './errors';

Expand Down

0 comments on commit 2046d45

Please sign in to comment.