1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Update Expectations of update method (#7119)

* Update Expectations of `update` method

Change `update` to return current state
when `shouldUpdate` returns false.

* Delete Accidental Tests
This commit is contained in:
Justin Baur
2023-12-06 14:14:49 -05:00
committed by GitHub
parent 6ddf87bc72
commit c3e114e36f
7 changed files with 8 additions and 8 deletions

View File

@@ -145,7 +145,7 @@ describe("DefaultGlobalState", () => {
expect(diskStorageService.mock.save).not.toHaveBeenCalled();
expect(emissions).toEqual([null]); // Initial value
expect(result).toBeUndefined();
expect(result).toBeNull();
});
it("should provide the update callback with the current State", async () => {