test(entity) add

This commit is contained in:
coderaiser 2017-03-27 12:30:32 +03:00
parent 0aab46588d
commit 520aa075fa
2 changed files with 4 additions and 4 deletions

View file

@ -12,8 +12,8 @@ test('cloudcmd: entity: encode', (t) => {
});
test('cloudcmd: entity: decode', (t) => {
const result = entity.decode('<hello>');
const expected = '<hello>';
const result = entity.decode('&lt;hello&gt;&nbsp;');
const expected = '<hello> ';
t.equal(result, expected, 'should decode entity');
t.end();