mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-19 21:16:18 +00:00
Updated to airbnb coding styles
This commit is contained in:
@@ -48,11 +48,11 @@ describe('ColorGenerator', () => {
|
||||
|
||||
describe('isColorLightForKey', () => {
|
||||
it.each([
|
||||
[ MAIN_COLOR, true ],
|
||||
[ '#8A661C', false ],
|
||||
[ '#F7BE05', true ],
|
||||
[ '#5A02D8', false ],
|
||||
[ '#202786', false ],
|
||||
[MAIN_COLOR, true],
|
||||
['#8A661C', false],
|
||||
['#F7BE05', true],
|
||||
['#5A02D8', false],
|
||||
['#202786', false],
|
||||
])('returns that the color for a key is light based on the color assigned to that key', (color, isLight) => {
|
||||
colorGenerator.setColorForKey('foo', color);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Mock } from 'ts-mockery';
|
||||
import LocalStorage from '../../../src/utils/services/LocalStorage';
|
||||
|
||||
describe('LocalStorage', () => {
|
||||
const getItem = jest.fn((key) => key === 'shlink.foo' ? JSON.stringify({ foo: 'bar' }) : null);
|
||||
const getItem = jest.fn((key) => (key === 'shlink.foo' ? JSON.stringify({ foo: 'bar' }) : null));
|
||||
const setItem = jest.fn();
|
||||
const localStorageMock = Mock.of<Storage>({ getItem, setItem });
|
||||
let storage: LocalStorage;
|
||||
|
||||
Reference in New Issue
Block a user