Skip to content

Commit ca4979e

Browse files
committed
Add some comment for test case
1 parent b8be3e5 commit ca4979e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/unit/serialize.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,14 @@ describe('serialize( obj )', function () {
438438
str:'str',
439439
fn
440440
}
441+
// case 1. Pass function to serialize
441442
expect(serialize(fn, { ignoreFunction: true })).to.equal(`undefined`);
443+
// case 2. Pass function(arrow) in object to serialze
442444
expect(serialize(obj, { ignoreFunction: true })).to.equal("{}");
443-
expect(serialize(obj2,{ignoreFunction:true})).to.equal(`{"num":123,"str":"str"}`);
445+
// case 3. Other features should work
446+
expect(serialize(obj2, { ignoreFunction: true })).to.equal(
447+
`{"num":123,"str":"str"}`
448+
);
444449
});
445450
});
446451

0 commit comments

Comments
 (0)