From d5886c4f271935a7bd29c6970ba2fc42ee5b81bd Mon Sep 17 00:00:00 2001 From: Kepler Sticka-Jones Date: Tue, 20 Aug 2019 14:26:18 -0600 Subject: [PATCH] test: make sure module is correct This kills a mutant right away --- src/__snapshots__/index.test.tsx.snap | 7 +++++++ src/index.test.tsx | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/src/__snapshots__/index.test.tsx.snap b/src/__snapshots__/index.test.tsx.snap index 58b2db8..10c4e2d 100644 --- a/src/__snapshots__/index.test.tsx.snap +++ b/src/__snapshots__/index.test.tsx.snap @@ -7,3 +7,10 @@ exports[`Serialization function serializes a JSON+LD script element with data se Object {} `; + +exports[`Serialization module matches expectations 1`] = ` +Object { + "print": [Function], + "test": [Function], +} +`; diff --git a/src/index.test.tsx b/src/index.test.tsx index bf1a5be..50ee89f 100644 --- a/src/index.test.tsx +++ b/src/index.test.tsx @@ -49,3 +49,9 @@ describe("Serialization function", () => { expect(ldScriptElement).toMatchSnapshot(); }); }); + +describe("Serialization module", () => { + it("matches expectations", () => { + expect(serializer).toMatchSnapshot(); + }); +});