We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba11f28 commit 3a13d54Copy full SHA for 3a13d54
test/unit/serialize.js
@@ -217,6 +217,7 @@ describe('serialize( obj )', function () {
217
expect(serialize(fn, {isJSON: false})).to.equal('function fn() { return true; }');
218
219
expect(serialize(fn, {isJSON: true})).to.equal('undefined');
220
+ expect(serialize([1], {isJSON: true, space: 2})).to.equal('[\n 1\n]');
221
});
222
223
0 commit comments