From 5c38c53c8b8f95aa1df652c18f790e4c35e6465e Mon Sep 17 00:00:00 2001 From: Brittany Harris Date: Mon, 15 Jun 2020 13:36:08 +0100 Subject: [PATCH] failing test for hyphen case cli options --- test/cli.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/cli.js b/test/cli.js index 021e58d4..65c0fafa 100644 --- a/test/cli.js +++ b/test/cli.js @@ -1,4 +1,5 @@ let exec = require('child_process').execSync; +let fs = require('fs'); let assert = require('assert'); function run(cmd) { @@ -31,6 +32,11 @@ suite('cli', function () { assert.equal(o, '

frang

\n'); }); + test('rendering, remove whitespace option (hyphen case)', function () { + let o = run('./bin/cli.js --rm-whitespace ./test/fixtures/rmWhitespace.ejs'); + assert.equal(o, fs.readFileSync('test/fixtures/rmWhitespace.html', 'utf-8')); + }); + });