diff --git a/server/entity.js b/server/entity.js index 34bcd966..8472a1bd 100644 --- a/server/entity.js +++ b/server/entity.js @@ -2,8 +2,8 @@ const Entities = { ' ': ' ', - '<' : '<', - '>' : '>' + '<': '<', + '>': '>', }; const keys = Object.keys(Entities); diff --git a/test/server/entity.js b/test/server/entity.js index e5f61206..b0fded8b 100644 --- a/test/server/entity.js +++ b/test/server/entity.js @@ -12,8 +12,8 @@ test('cloudcmd: entity: encode', (t) => { }); test('cloudcmd: entity: decode', (t) => { - const result = entity.decode('<hello>'); - const expected = ''; + const result = entity.decode('<hello> '); + const expected = ' '; t.equal(result, expected, 'should decode entity'); t.end();