From cee3d82b4a1da22b86a135565009f054e6fb3ae5 Mon Sep 17 00:00:00 2001 From: Christian Kaisermann Date: Thu, 28 Nov 2019 23:40:57 -0300 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20fix=20lint=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/includes/loaderQueue.ts | 2 +- test/client/includes/loaderQueue.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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()