add 2 tests, escapeHTML & escapeRegExp

This commit is contained in:
Stefan Feješ
2018-01-10 17:23:06 +01:00
parent 5433294e03
commit c67e8396e3
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ test('Testing escapeHTML', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof escapeHTML === 'function', 'escapeHTML is a Function');
t.equal(escapeHTML('<a href="#">Me & you</a>'), '&lt;a href=&quot;#&quot;&gt;Me &amp; you&lt;/a&gt;', "Escapes a string for use in HTML");
//t.deepEqual(escapeHTML(args..), 'Expected');
//t.equal(escapeHTML(args..), 'Expected');
//t.false(escapeHTML(args..), 'Expected');