Skip to content

Commit bcdb2f1

Browse files
committed
style: reformat source code
1 parent 2008fb6 commit bcdb2f1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/helpers/is_valid_redirect_url.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,12 @@ test.group('isValidRedirectUrl', () => {
6060
test('accept absolute URLs in allowedHosts', ({ assert }) => {
6161
assert.isTrue(isValidRedirectUrl('https://app.example.com/foo', undefined, ['app.example.com']))
6262
assert.isTrue(
63-
isValidRedirectUrl('https://admin.example.com/foo', 'app.example.com', [
64-
'admin.example.com',
65-
])
63+
isValidRedirectUrl('https://admin.example.com/foo', 'app.example.com', ['admin.example.com'])
6664
)
6765
})
6866

6967
test('reject absolute URLs not in allowedHosts or currentHost', ({ assert }) => {
70-
assert.isFalse(
71-
isValidRedirectUrl('https://evil.com/foo', 'example.com', ['app.example.com'])
72-
)
68+
assert.isFalse(isValidRedirectUrl('https://evil.com/foo', 'example.com', ['app.example.com']))
7369
})
7470

7571
test('relative URLs ignore host constraints', ({ assert }) => {

0 commit comments

Comments
 (0)