1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Extend LogTabViewModel mocks in other tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-08-15 15:09:45 +03:00
parent c9f4234ed3
commit 386697cce4
2 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,8 @@ function mockLogTabViewModel(tabId: TabId, deps: Partial<LogTabViewModelDependen
getPodsByOwnerId: jest.fn(), getPodsByOwnerId: jest.fn(),
searchStore: new SearchStore(), searchStore: new SearchStore(),
areLogsPresent: jest.fn(), areLogsPresent: jest.fn(),
downloadLogs: jest.fn(),
downloadAllLogs: jest.fn(),
...deps, ...deps,
}); });
} }

View File

@ -31,6 +31,8 @@ function mockLogTabViewModel(tabId: TabId, deps: Partial<LogTabViewModelDependen
getPodsByOwnerId: jest.fn(), getPodsByOwnerId: jest.fn(),
areLogsPresent: jest.fn(), areLogsPresent: jest.fn(),
searchStore: new SearchStore(), searchStore: new SearchStore(),
downloadLogs: jest.fn(),
downloadAllLogs: jest.fn(),
...deps, ...deps,
}); });
} }