diff --git a/src/client/includes/loaderQueue.ts b/src/client/includes/loaderQueue.ts index 9c4b1bf..5b1aade 100644 --- a/src/client/includes/loaderQueue.ts +++ b/src/client/includes/loaderQueue.ts @@ -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' diff --git a/test/client/includes/loaderQueue.test.ts b/test/client/includes/loaderQueue.test.ts index 7991864..adbc3f5 100644 --- a/test/client/includes/loaderQueue.test.ts +++ b/test/client/includes/loaderQueue.test.ts @@ -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()