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 32daeb8 commit 6850658Copy full SHA for 6850658
spec/core/GraphRequestUtil.ts
@@ -61,10 +61,15 @@ describe("GraphRequestUtil.ts", () => {
61
node2.link = node1;
62
try {
63
serializeContent(node1);
64
- throw new Error("Something wrong with the serialize content, it should stringify cyclic referenced objects");
+ throw new Error("Something wrong with the serialize content, it should not stringify cyclic referenced objects");
65
} catch (error) {
66
assert.equal(error.message, "Unable to stringify the content");
67
}
68
});
69
+
70
+ it("Should return undefined for the case of undefined content value", () => {
71
+ const val = undefined;
72
+ assert.equal(serializeContent(val), undefined);
73
+ });
74
75
0 commit comments