From 520aa075fabea678e6be6d4ed3e54d9211439274 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 27 Mar 2017 12:30:32 +0300 Subject: [PATCH] test(entity) add --- server/entity.js | 4 ++-- test/server/entity.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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();