mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
tests
This commit is contained in:
parent
7576df903c
commit
2ae9ccdf97
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import { createMockColada } from '@/mocks/pinia-colada'
|
|||
import { http } from 'msw'
|
||||
import { baseUrl, response401Unauthorized } from '@/mocks/api/handlers/base'
|
||||
import { VueWrapper } from '@vue/test-utils'
|
||||
import type { ErrorCause } from '@/api/komga-client'
|
||||
|
||||
let mock: VueWrapper
|
||||
beforeAll(() => server.listen())
|
||||
|
|
@ -33,5 +34,5 @@ test('when failing to get actuator-info then values are undefined', async () =>
|
|||
await refresh()
|
||||
expect(buildVersion.value).toBeUndefined()
|
||||
expect(commitId.value).toBeUndefined()
|
||||
expect(error.value).not.toBeUndefined()
|
||||
expect((error.value?.cause as ErrorCause).status).toBe(401)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue