mirror of
https://github.com/gotson/komga.git
synced 2026-03-30 18:15:21 +02:00
fix tests
This commit is contained in:
parent
e49e3abf89
commit
ddd5f50998
1 changed files with 3 additions and 3 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { beforeAll, expect, test, vi } from 'vitest'
|
||||
import { beforeEach, expect, test, vi } from 'vitest'
|
||||
import { loadLocale, defaultLocale, setLocale, getLocale, availableLocales } from './locale-helper'
|
||||
|
||||
beforeAll(() => {
|
||||
beforeEach(() => {
|
||||
// mock the available locales, as locales are checked against what's available
|
||||
vi.mock('../i18n?dir2json&ext=.json&1', () => {
|
||||
vi.mock('@/i18n?dir2json&ext=.json&1', () => {
|
||||
return {
|
||||
default: {
|
||||
en: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue