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

11 lines
358 B
TypeScript
Executable File

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