chore(v2): Fix more eslint errors (#2976)

This commit is contained in:
Sam Zhou 2020-06-21 03:09:00 -04:00 committed by GitHub
parent 3611c96f90
commit 6e43c9bd34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 375 additions and 237 deletions

View file

@ -7,10 +7,9 @@
import path from 'path';
import Vibrant from 'node-vibrant';
import {Palette} from 'node-vibrant/lib/color';
// @ts-ignore
import {toPalette, toBase64} from '../utils';
// @ts-ignore
import lqip from '../lqip';
describe('lqip-loader', () => {
@ -24,8 +23,8 @@ describe('lqip-loader', () => {
});
describe('toPalette', () => {
let correctTestSwatch: object = {};
let testSwatchWithNull: object = {};
let correctTestSwatch: Palette = {};
let testSwatchWithNull: Palette & {Vibrant?: null} = {};
beforeAll(() => {
const imgPath = path.join(__dirname, '__fixtures__', 'endi.jpg');