Skip to content

Commit 3a13d54

Browse files
committed
Test using isJSON and space options together
1 parent ba11f28 commit 3a13d54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unit/serialize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ describe('serialize( obj )', function () {
217217
expect(serialize(fn, {isJSON: false})).to.equal('function fn() { return true; }');
218218

219219
expect(serialize(fn, {isJSON: true})).to.equal('undefined');
220+
expect(serialize([1], {isJSON: true, space: 2})).to.equal('[\n 1\n]');
220221
});
221222
});
222223

0 commit comments

Comments
 (0)