mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-22 01:50:02 +01:00
style: format authProvider test with prettier
This commit is contained in:
parent
33f92275f2
commit
d6c5d2487c
1 changed files with 2 additions and 8 deletions
|
|
@ -66,10 +66,7 @@ describe('authProvider', () => {
|
|||
|
||||
it('does not reload-loop within 30 seconds', async () => {
|
||||
config.extAuthLogoutURL = 'https://auth.example.com/logout'
|
||||
sessionStorage.setItem(
|
||||
'ext-auth-reload-ts',
|
||||
String(Date.now() - 10000),
|
||||
)
|
||||
sessionStorage.setItem('ext-auth-reload-ts', String(Date.now() - 10000))
|
||||
await expect(
|
||||
authProvider.checkError(new TypeError('Failed to fetch')),
|
||||
).resolves.toBeUndefined()
|
||||
|
|
@ -78,10 +75,7 @@ describe('authProvider', () => {
|
|||
|
||||
it('allows reload again after 30 seconds', () => {
|
||||
config.extAuthLogoutURL = 'https://auth.example.com/logout'
|
||||
sessionStorage.setItem(
|
||||
'ext-auth-reload-ts',
|
||||
String(Date.now() - 31000),
|
||||
)
|
||||
sessionStorage.setItem('ext-auth-reload-ts', String(Date.now() - 31000))
|
||||
try {
|
||||
authProvider.checkError(new TypeError('Failed to fetch'))
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue