mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-02-28 04:36:45 +00:00
Fix remaining type errors in tests
This commit is contained in:
@@ -7,11 +7,10 @@ describe('ColorGenerator', () => {
|
||||
let colorGenerator: ColorGenerator;
|
||||
const storageMock = fromPartial<LocalStorage>({
|
||||
set: vi.fn(),
|
||||
get: vi.fn(),
|
||||
get: vi.fn().mockImplementation(() => undefined),
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
colorGenerator = new ColorGenerator(storageMock);
|
||||
});
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ describe('LocalStorage', () => {
|
||||
let storage: LocalStorage;
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
storage = new LocalStorage(localStorageMock);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user