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