mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 10:41:56 +00:00
661d862311
* Add electron version as package json field, unify version export * Base electron versioning on assets in uploaded binaries * Update schema, remove dead code * Remove unused import * Remove console logs * correct electron-version * better styling for versions * bump electron-version
35 lines
745 B
TypeScript
35 lines
745 B
TypeScript
import { objectContainsObjectKeys } from 'utils/helpers';
|
|
|
|
describe('objectContainsObjectKeys', () => {
|
|
it('should return true when object contains all keys of another object', () => {
|
|
const checkingObject = {
|
|
a: 1,
|
|
b: 2,
|
|
c: 3
|
|
};
|
|
|
|
const containingObject = {
|
|
a: 1,
|
|
b: 2,
|
|
c: 3,
|
|
d: 4
|
|
};
|
|
|
|
expect(objectContainsObjectKeys(checkingObject, containingObject)).toBeTruthy();
|
|
});
|
|
|
|
it('should return false when object does not contain all keys of another object', () => {
|
|
const checkingObject = {
|
|
a: 1,
|
|
b: 2,
|
|
c: 3
|
|
};
|
|
|
|
const containingObject = {
|
|
a: 1
|
|
};
|
|
|
|
expect(objectContainsObjectKeys(checkingObject, containingObject)).toBeFalsy();
|
|
});
|
|
});
|