2017-05-03 17:48:23 +00:00
|
|
|
import * as appPackage from '../package.json';
|
|
|
|
import * as globalPackage from '../../package.json';
|
2017-07-20 03:36:44 +00:00
|
|
|
import {globalBeforeEach} from '../__jest__/before-each';
|
2017-05-03 17:48:23 +00:00
|
|
|
|
|
|
|
describe('package.json', () => {
|
2017-07-20 03:36:44 +00:00
|
|
|
beforeEach(globalBeforeEach);
|
2017-05-03 17:48:23 +00:00
|
|
|
it('all app dependencies should be same in global', () => {
|
|
|
|
for (const name of Object.keys(appPackage.dependencies)) {
|
|
|
|
const expected = globalPackage.dependencies[name];
|
|
|
|
const actual = appPackage.dependencies[name];
|
|
|
|
expect(`${name}::${actual}`).toBe(`${name}::${expected}`);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|