Skip to content

Commit

Permalink
Update validate.test.ts - revert default fail to true, do a === check…
Browse files Browse the repository at this point in the history
… on env
  • Loading branch information
APageNHS authored Jan 4, 2024
1 parent c1ee8c5 commit d49812d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const args = require('minimist')(process.argv.slice(2))
let source = '../'
let examples: string

let failOnWarning = false;
if (process.env.FAILONWARNING != undefined && process.env.FAILONWARNING.toLowerCase() == 'false') {
let failOnWarning = true;
if (process.env.FAILONWARNING != undefined && process.env.FAILONWARNING.toLowerCase() === 'false') {
failOnWarning = false;
}
gitHubSummary += 'Strict validation: ' + failOnWarning + NEW_LINE;
Expand Down

0 comments on commit d49812d

Please sign in to comment.