Skip to content

Commit

Permalink
Added default threshold of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianBuegler committed Nov 28, 2017
1 parent 303f992 commit a13a9cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/testcomparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ module.exports = {
* @returns true is both values match
**/
compare: function (result, desired,threshold) {
if (threshold===undefined){
threshold=0;
}
if (result===undefined){
return desired===undefined;
}
Expand Down

0 comments on commit a13a9cf

Please sign in to comment.