Fixed tests

This commit is contained in:
Alejandro Celaya
2018-07-22 22:49:51 +02:00
parent 86a1cdf4d1
commit 3eaa66435a
2 changed files with 7 additions and 7 deletions

View File

@@ -14,4 +14,5 @@ export class Storage {
set = (key, value) => this.localStorage.setItem(buildPath(key), JSON.stringify(value));
}
export default new Storage(localStorage);
const storage = typeof localStorage !== 'undefined' ? localStorage : {};
export default new Storage(storage);