Skip to content

Commit

Permalink
improving coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed May 30, 2017
1 parent fd387b2 commit 1af6810
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/queryFile.js
Expand Up @@ -129,6 +129,7 @@ function QueryFile(file, options) {
filePath = $npm.path.join($npm.utils.startDir, filePath);
}

// istanbul ignore next:
if (!opt.noWarnings) {
if (filePath in usedPath) {
usedPath[filePath]++;
Expand Down
2 changes: 1 addition & 1 deletion test/entrySpec.js
Expand Up @@ -33,7 +33,7 @@ describe("Library entry function", function () {
describe("without any promise override", function () {
it("must return a valid library object", function () {
if (supportsPromise) {
var lib = header({noWarnings: true});
var lib = header();
expect(typeof(lib.pgp)).toBe('function');
} else {
expect(function () {
Expand Down

0 comments on commit 1af6810

Please sign in to comment.