Skip to content

Commit 8733353

Browse files
committed
rename Remixsession to ReactRouterSession
1 parent e25571d commit 8733353

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/session.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LoaderFunctionArgs, Session as RemixSession, redirect } from 'react-router';
1+
import { LoaderFunctionArgs, Session as ReactRouterSession, redirect } from 'react-router';
22
import { AuthenticationResponse } from '@workos-inc/node';
33
import * as ironSession from 'iron-session';
44
import * as jose from 'jose';
@@ -72,7 +72,7 @@ jest.mock('iron-session', () => ({
7272

7373
describe('session', () => {
7474
// eslint-disable-next-line @typescript-eslint/no-explicit-any
75-
const createMockSession = (overrides?: Record<string, any>): RemixSession =>
75+
const createMockSession = (overrides?: Record<string, any>): ReactRouterSession =>
7676
({
7777
has: jest.fn(),
7878
get: jest.fn(),
@@ -82,7 +82,7 @@ describe('session', () => {
8282
id: 'test-session-id',
8383
data: {},
8484
...overrides,
85-
}) satisfies RemixSession;
85+
}) satisfies ReactRouterSession;
8686

8787
const createMockRequest = (cookie = 'test-cookie', url = 'http://example.com./some-path') =>
8888
new Request(url, {

0 commit comments

Comments
 (0)