From afb13af7a180b9568e53a2439b4607162b0e4497 Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Mon, 12 Jun 2017 18:05:32 +0900 Subject: [PATCH] iss #619 Add a test for teh helper methods --- tests/lib/html-text-helper-test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/lib/html-text-helper-test.js b/tests/lib/html-text-helper-test.js index a476c0dd..8036e3bf 100644 --- a/tests/lib/html-text-helper-test.js +++ b/tests/lib/html-text-helper-test.js @@ -12,7 +12,8 @@ test('htmlTextHelper#decodeEntities should return encoded text (string)', t => { ['var test = 'test'', 'var test = \'test\''], ['<a href='https://boostnote.io'>Boostnote', 'Boostnote'], ['<\\\\?php\n var = 'hoge';', '<\\\\?php\n var = \'hoge\';'], - ['&', '&'] + ['&', '&'], + ['a$'', 'a\\$\''] ] testCases.forEach(testCase => { @@ -27,7 +28,8 @@ test('htmlTextHelper#decodeEntities() should return decoded text (string)', t => ['Boostnote', '<a href='https://boostnote.io'>Boostnote'], - [' {