Skip to content

Commit a52eab3

Browse files
Merge branch 'inlocalstorage_baseline' into inlocalstorage_storageAdapter
2 parents 1cc876b + dc1ea50 commit a52eab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/storages/inLocalStorage/__tests__/MySegmentsCacheInLocal.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { MySegmentsCacheInLocal } from '../MySegmentsCacheInLocal';
22
import { KeyBuilderCS, myLargeSegmentsKeyBuilder } from '../../KeyBuilderCS';
33
import { loggerMock } from '../../../logger/__tests__/sdkLogger.mock';
44
import { storages, PREFIX } from './wrapper.mock';
5+
import { IMySegmentsResponse } from '../../../dtos/types';
56

67
test.each(storages)('SEGMENT CACHE / in LocalStorage', (storage) => {
78
const caches = [
@@ -23,11 +24,10 @@ test.each(storages)('SEGMENT CACHE / in LocalStorage', (storage) => {
2324
});
2425

2526
caches.forEach(cache => {
26-
// @ts-expect-error
2727
cache.resetSegments({
2828
added: [],
2929
removed: ['mocked-segment']
30-
});
30+
} as IMySegmentsResponse);
3131

3232
expect(cache.isInSegment('mocked-segment')).toBe(false);
3333
expect(cache.getRegisteredSegments()).toEqual(['mocked-segment-2']);

0 commit comments

Comments
 (0)