Skip to content

Commit 6850658

Browse files
committed
updated the tests for this case
1 parent 32daeb8 commit 6850658

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec/core/GraphRequestUtil.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,15 @@ describe("GraphRequestUtil.ts", () => {
6161
node2.link = node1;
6262
try {
6363
serializeContent(node1);
64-
throw new Error("Something wrong with the serialize content, it should stringify cyclic referenced objects");
64+
throw new Error("Something wrong with the serialize content, it should not stringify cyclic referenced objects");
6565
} catch (error) {
6666
assert.equal(error.message, "Unable to stringify the content");
6767
}
6868
});
69+
70+
it("Should return undefined for the case of undefined content value", () => {
71+
const val = undefined;
72+
assert.equal(serializeContent(val), undefined);
73+
});
6974
});
7075
});

0 commit comments

Comments
 (0)