Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit bbfe543

Browse files
committed
테스트 수정
1 parent d94e0bb commit bbfe543

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { getRedirectUrl } from './redirect'
2+
3+
describe('getRedirectUrl', () => {
4+
const mockUrl = 'https://triple.guide'
5+
6+
Object.defineProperty(window, 'location', {
7+
value: new URL(mockUrl),
8+
})
9+
10+
it('should return redirect url with redirect query string', () => {
11+
const result = getRedirectUrl('https://example.com')
12+
expect(result).toBe(
13+
`https://example.com?redirect=${encodeURIComponent(
14+
window.location.href,
15+
)}`,
16+
)
17+
})
18+
})

packages/react-contexts/src/session-context/redirect.spect.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)