Skip to content

Commit

Permalink
failing test for hyphen case cli options
Browse files Browse the repository at this point in the history
  • Loading branch information
brittharr committed Jun 15, 2020
1 parent ec66df2 commit 5c38c53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
let exec = require('child_process').execSync;
let fs = require('fs');
let assert = require('assert');

function run(cmd) {
Expand Down Expand Up @@ -31,6 +32,11 @@ suite('cli', function () {
assert.equal(o, '<h1>frang</h1>\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'));
});

});


0 comments on commit 5c38c53

Please sign in to comment.