Fix remaining type errors in tests

This commit is contained in:
Alejandro Celaya
2023-05-27 12:45:06 +02:00
parent d14aea708e
commit 2a86a0e540
6 changed files with 8 additions and 12 deletions

View File

@@ -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);
});

View File

@@ -8,7 +8,6 @@ describe('LocalStorage', () => {
let storage: LocalStorage;
beforeEach(() => {
vi.clearAllMocks();
storage = new LocalStorage(localStorageMock);
});