Updated testing with proper indentation
Uses two spaces instead of hard tabs.
This commit is contained in:
@ -2,13 +2,13 @@ const test = require('tape');
|
||||
const escapeHTML = require('./escapeHTML.js');
|
||||
|
||||
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>'), '<a href="#">Me & you</a>', "Escapes a string for use in HTML");
|
||||
//t.deepEqual(escapeHTML(args..), 'Expected');
|
||||
//t.equal(escapeHTML(args..), 'Expected');
|
||||
//t.false(escapeHTML(args..), 'Expected');
|
||||
//t.throws(escapeHTML(args..), 'Expected');
|
||||
t.end();
|
||||
//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>'), '<a href="#">Me & you</a>', "Escapes a string for use in HTML");
|
||||
//t.deepEqual(escapeHTML(args..), 'Expected');
|
||||
//t.equal(escapeHTML(args..), 'Expected');
|
||||
//t.false(escapeHTML(args..), 'Expected');
|
||||
//t.throws(escapeHTML(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user