atcheck/lsscanner/new_ubuntu/node_modules_win/electron-rebuild/test/read-package-json.ts

11 lines
358 B
TypeScript
Raw Normal View History

2019-12-16 18:42:21 +01:00
import * as path from 'path';
import { expect } from 'chai';
import { readPackageJson } from '../src/read-package-json';
describe('read-package-json', () => {
it('should find a package.json file from the given directory', async () => {
expect(await readPackageJson(path.resolve(__dirname, '..'))).to.deep.equal(require('../package.json'));
});
});