Skip to content

Commit

Permalink
Test added for #557 #556
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jun 12, 2019
1 parent 7d1459e commit f014f56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/TemplateDataTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ test("TemplateData.merge", t => {

test("TemplateData.cleanupData", t => {
t.deepEqual(TemplateData.cleanupData({}), {});
t.deepEqual(TemplateData.cleanupData({ tags: null }), { tags: [] });
t.deepEqual(TemplateData.cleanupData({ tags: "" }), { tags: [] });
t.deepEqual(TemplateData.cleanupData({ tags: [] }), { tags: [] });
t.deepEqual(TemplateData.cleanupData({ tags: "test" }), { tags: ["test"] });
Expand Down

0 comments on commit f014f56

Please sign in to comment.