mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[PM-16917] Remove jest-extended dependency (#12798)
* add toContainPartialObjects matcher (replacing toIncludeAllPartialMembers from jest-extended) * replace jest-extended matchers with equivalent default matchers
This commit is contained in:
@@ -184,7 +184,7 @@ describe("KeyServiceLegacyEncryptorProvider", () => {
|
||||
|
||||
singleUserId$.complete();
|
||||
|
||||
expect(completed).toBeTrue();
|
||||
expect(completed).toBe(true);
|
||||
});
|
||||
|
||||
it("completes when `userKey$` emits a falsy value after emitting a truthy value", () => {
|
||||
@@ -199,7 +199,7 @@ describe("KeyServiceLegacyEncryptorProvider", () => {
|
||||
|
||||
userKey$.next(null);
|
||||
|
||||
expect(completed).toBeTrue();
|
||||
expect(completed).toBe(true);
|
||||
});
|
||||
|
||||
it("completes once `dependencies.singleUserId$` emits and `userKey$` completes", () => {
|
||||
@@ -214,7 +214,7 @@ describe("KeyServiceLegacyEncryptorProvider", () => {
|
||||
|
||||
userKey$.complete();
|
||||
|
||||
expect(completed).toBeTrue();
|
||||
expect(completed).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -445,7 +445,7 @@ describe("KeyServiceLegacyEncryptorProvider", () => {
|
||||
|
||||
singleOrganizationId$.complete();
|
||||
|
||||
expect(completed).toBeTrue();
|
||||
expect(completed).toBe(true);
|
||||
});
|
||||
|
||||
it("completes when `orgKeys$` emits a falsy value after emitting a truthy value", () => {
|
||||
@@ -466,7 +466,7 @@ describe("KeyServiceLegacyEncryptorProvider", () => {
|
||||
orgKey$.next(OrgRecords);
|
||||
orgKey$.next(null);
|
||||
|
||||
expect(completed).toBeTrue();
|
||||
expect(completed).toBe(true);
|
||||
});
|
||||
|
||||
it("completes once `dependencies.singleOrganizationId$` emits and `userKey$` completes", () => {
|
||||
@@ -486,7 +486,7 @@ describe("KeyServiceLegacyEncryptorProvider", () => {
|
||||
|
||||
orgKey$.complete();
|
||||
|
||||
expect(completed).toBeTrue();
|
||||
expect(completed).toBe(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -56,7 +56,7 @@ describe("errorOnChange", () => {
|
||||
|
||||
source$.complete();
|
||||
|
||||
expect(complete).toBeTrue();
|
||||
expect(complete).toBe(true);
|
||||
});
|
||||
|
||||
it("errors when the input changes", async () => {
|
||||
|
||||
Reference in New Issue
Block a user