mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
This reverts commit 38c335d8fb.
This commit is contained in:
@@ -59,7 +59,7 @@ export class FakeStorageService implements AbstractStorageService {
|
||||
return Promise.resolve(this.store[key] != null);
|
||||
}
|
||||
save<T>(key: string, obj: T, options?: StorageOptions): Promise<void> {
|
||||
this.mock.save(key, obj, options);
|
||||
this.mock.save(key, options);
|
||||
this.store[key] = obj;
|
||||
this.updatesSubject.next({ key: key, updateType: "save" });
|
||||
return Promise.resolve();
|
||||
|
||||
@@ -69,10 +69,6 @@ export function trackEmissions<T>(observable: Observable<T>): T[] {
|
||||
case "boolean":
|
||||
emissions.push(value);
|
||||
break;
|
||||
case "symbol":
|
||||
// Cheating types to make symbols work at all
|
||||
emissions.push(value.toString() as T);
|
||||
break;
|
||||
default: {
|
||||
emissions.push(clone(value));
|
||||
}
|
||||
@@ -89,7 +85,7 @@ function clone(value: any): any {
|
||||
}
|
||||
}
|
||||
|
||||
export async function awaitAsync(ms = 1) {
|
||||
export async function awaitAsync(ms = 0) {
|
||||
if (ms < 1) {
|
||||
await Promise.resolve();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user