优化
This commit is contained in:
@@ -85,10 +85,10 @@ describe('LoginView authentication lifecycle', () => {
|
||||
it.each([
|
||||
['/customers?page=2', '/customers?page=2'],
|
||||
['/customers/reviews', '/customers/reviews'],
|
||||
['//example.com', '/403'],
|
||||
['https://example.com', '/403'],
|
||||
[['/customers', '/orders/first-leg'], '/403'],
|
||||
[null, '/403'],
|
||||
['//example.com', '/dashboard'],
|
||||
['https://example.com', '/dashboard'],
|
||||
[['/customers', '/orders/first-leg'], '/dashboard'],
|
||||
[null, '/dashboard'],
|
||||
])('sanitizes the post-login redirect %j to %s', async (redirect, expected) => {
|
||||
const pinia = createPinia()
|
||||
setActivePinia(pinia)
|
||||
|
||||
Reference in New Issue
Block a user