mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 18:10:43 +01:00
chore: 🤖 fix lint issues
This commit is contained in:
parent
aec74abab9
commit
cee3d82b4a
@ -4,7 +4,7 @@ import {
|
||||
$dictionary,
|
||||
addMessages,
|
||||
} from '../stores/dictionary'
|
||||
import { getCurrentLocale, getRelatedLocalesOf } from '../stores/locale'
|
||||
import { getRelatedLocalesOf } from '../stores/locale'
|
||||
import { $isLoading } from '../stores/loading'
|
||||
import { getOptions } from '../configs'
|
||||
|
||||
|
@ -64,7 +64,7 @@ test('should set loading to true if passed min delay and false after loading', (
|
||||
)
|
||||
)
|
||||
|
||||
const flush = flush('en')
|
||||
const flushPromise = flush('en')
|
||||
|
||||
return new Promise((res, rej) => {
|
||||
setTimeout(() => {
|
||||
@ -72,7 +72,7 @@ test('should set loading to true if passed min delay and false after loading', (
|
||||
return rej('$isLoading should be "true"')
|
||||
}, getOptions().loadingDelay)
|
||||
}).then(() => {
|
||||
flush.then(
|
||||
flushPromise.then(
|
||||
() =>
|
||||
new Promise((res, rej) => {
|
||||
if (get($isLoading) === false) return res()
|
||||
|
Loading…
Reference in New Issue
Block a user