From a1e894c193326f4eb81f4b4a645396d9345479d5 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Sun, 23 Aug 2020 21:28:18 -0400 Subject: [PATCH] deploy/script: small test for debug --- tools/deploy/test/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/deploy/test/script.js b/tools/deploy/test/script.js index 251aa207..04b23ac6 100644 --- a/tools/deploy/test/script.js +++ b/tools/deploy/test/script.js @@ -10,12 +10,13 @@ const spriteSrc = path.join(__dirname, "src"); it('aq', () => { const aq = new script.ActionQueue(); aq.copy("foo", "bar"); + aq.debug("test"); aq.copy("baz", "./bar"); aq.copy("baz", "/bar") expect(aq.log).toEqual(expect.arrayContaining([ {type: 'Copy', src: 'foo', dst: "bar", valid: 'Multiple', debugObjs: []}, - {type: 'Copy', src: 'baz', dst: "bar", valid: 'Multiple', debugObjs: []}, + {type: 'Copy', src: 'baz', dst: "bar", valid: 'Multiple', debugObjs: ["test"]}, {type: 'Copy', src: 'baz', dst: "/bar", valid: 'Absolute', debugObjs: []}, ]));