From 0adc63d173b87688ea3e09e4c6bf9308e196345a Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Fri, 3 Apr 2020 20:41:28 +0100 Subject: [PATCH] tests: added failing test for issue #1673 - demonstrates the regression --- tasks/test-bin.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/test-bin.js b/tasks/test-bin.js index 58dfab042..b1e31e800 100644 --- a/tasks/test-bin.js +++ b/tasks/test-bin.js @@ -164,6 +164,16 @@ const testCases = [ binInputParameters: ['./spec/artifacts/bom.handlebars', '-b', '-a'], outputLocation: 'stdout', expectedOutputSpec: './spec/expected/bom.amd.js' + }, + // Issue #1673 + { + binInputParameters: [ + '--amd', + '--no-amd', + 'spec/artifacts/empty.handlebars' + ], + outputLocation: 'stdout', + expectedOutputSpec: './spec/expected/empty.common.js' } ];