mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
Removed dependency on os. This is necessary so that the @bitwarden/common/spec lib package can be referenced in tests without node.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { EOL } from "os";
|
||||
|
||||
import { diff } from "jest-diff";
|
||||
|
||||
export const toContainPartialObjects: jest.CustomMatcher = function (
|
||||
@@ -15,7 +13,7 @@ export const toContainPartialObjects: jest.CustomMatcher = function (
|
||||
return {
|
||||
message: () =>
|
||||
"Expected the received array NOT to include partial matches for all expected objects." +
|
||||
EOL +
|
||||
"\n" +
|
||||
diff(expected, received),
|
||||
pass: true,
|
||||
};
|
||||
@@ -24,7 +22,7 @@ export const toContainPartialObjects: jest.CustomMatcher = function (
|
||||
return {
|
||||
message: () =>
|
||||
"Expected the received array to contain partial matches for all expected objects." +
|
||||
EOL +
|
||||
"\n" +
|
||||
diff(expected, received),
|
||||
pass: false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user