mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-24 12:41:58 +00:00
Migrate more tests to shoehorn
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Mock } from 'ts-mockery';
|
||||
import { fromPartial } from '@total-typescript/shoehorn';
|
||||
import type { ColorGenerator } from '../../../../src/utils/services/ColorGenerator';
|
||||
|
||||
export const colorGeneratorMock = Mock.of<ColorGenerator>({
|
||||
export const colorGeneratorMock = fromPartial<ColorGenerator>({
|
||||
getColorForKey: jest.fn(() => 'red'),
|
||||
setColorForKey: jest.fn(),
|
||||
isColorLightForKey: jest.fn(() => false),
|
||||
|
||||
Reference in New Issue
Block a user