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 0eed83c commit 86266e4Copy full SHA for 86266e4
src/index.test.tsx
@@ -34,6 +34,17 @@ describe("Serializer test function", () => {
34
expect(shouldSerialize).toEqual(false);
35
});
36
37
+ it("return false when given a React component", () => {
38
+ const Component = (): React.ReactElement => (
39
+ <div>
40
+ <span>Test Component</span>
41
+ </div>
42
+ );
43
+ const shouldSerialize = serializer.test(<Component />);
44
+
45
+ expect(shouldSerialize).toEqual(false);
46
+ });
47
48
it("returns false if value is undefined", () => {
49
const shouldSerialize = serializer.test(undefined);
50
0 commit comments