afterEach(() => { config.page = null; config.switches = { weather: true, }; userPrefs.remove('weather-location'); fetchJsonMock.mockReset(); });
const clearBannerHistory = (): void => { userPrefs.remove(lastClosedAtKey); };
it('should remove a user preference under a given key', () => { userPrefs.remove('key'); expect(userPrefs.get('key')).toBeNull(); });