test/integration-test/package.test.js
import assert from 'assert';
import {find} from './util';
describe('test/package.json:', ()=>{
it('has package json', ()=>{
const doc = find('longname', /\/package\.json$/);
const obj = JSON.parse(doc.content);
assert.equal(obj.name, 'esdoc2-test');
assert.equal(obj.version, '1.2.3');
});
});