Skip to content

Commit

Permalink
fix: allow contains check to receive expect:false
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisparnin committed Feb 3, 2020
1 parent 3524f87 commit beeca44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inspect/checks/contains.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Check = require('./check');

class ContainsCheck extends Check {
async check(context, args) {
let expect = args.expect || true;
let expect = args.expect !== 'undefined' ? args.expect : true;
return this.getContainsStatus(context, args.file, args.string, expect);
}

Expand Down

0 comments on commit beeca44

Please sign in to comment.