it('covers no package root', function () {
options.includePackage = true;
- fs.statSync.restore()
+ fs.statSync.restore();
sinon.stub(fs, 'statSync').throws(noentError);
fs.readFileSync.throws(noentError);
const result = fileScope(filepath, options)(method);
it('covers exception while finding package root', function () {
const expectedException = new Error('oh no');
options.includePackage = true;
- fs.statSync.restore()
+ fs.statSync.restore();
sinon.stub(fs, 'statSync').throws(expectedException);
fs.readFileSync.throws(noentError);
const result = fileScope(filepath, options)(method);