'use strict';
const assert = require('assert');
-const sinon = require('sinon'); // eslint-disable-line node/no-unpublished-require
+const sinon = require('sinon');
const fs = require('fs');
const {
readPackageJSON,
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);