From f014f56f26c3df71de3520558c0034e9cae8fb59 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 12 Jun 2019 08:21:35 -0500 Subject: [PATCH] Test added for #557 #556 --- test/TemplateDataTest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/TemplateDataTest.js b/test/TemplateDataTest.js index 35855e02e..919106821 100644 --- a/test/TemplateDataTest.js +++ b/test/TemplateDataTest.js @@ -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"] });