Skip to content

Commit

Permalink
test: fix over optimistic default function var
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Owsiak committed Jan 4, 2018
1 parent 5ac3f42 commit fca0206
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/stringify.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const equal = require('assertive').equal;
const CSON = require('../');

function cson(obj, visitor, space) {
space = space || 2;
if (space == null) {
space = 2;
}

return CSON.stringify(obj, visitor, space);
}
Expand Down

0 comments on commit fca0206

Please sign in to comment.