MyCrypto/spec/utils/helpers.spec.ts
HenryNguyen5 661d862311 Improve electron versioning (#1777)
* 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
2018-05-14 12:06:04 -05:00

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();
});
});