Skip to content

Commit

Permalink
Revert "Ps/avoid state emit until updated (#7124)" (#7187)
Browse files Browse the repository at this point in the history
This reverts commit 38c335d.
  • Loading branch information
MGibson1 committed Dec 12, 2023
1 parent 79dbe05 commit 08b69ff
Show file tree
Hide file tree
Showing 10 changed files with 206 additions and 1,127 deletions.
2 changes: 1 addition & 1 deletion libs/common/spec/fake-storage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 1 addition & 5 deletions libs/common/spec/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand All @@ -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 {
Expand Down
Loading

0 comments on commit 08b69ff

Please sign in to comment.