UNPKG

electron-rebuild

Version:

Electron supporting package to rebuild native node modules against the currently installed electron

11 lines (8 loc) 358 B
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')); }); });