From 78c83f25617d42cd43b2b4f8f16b3dc3456c6049 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 30 Nov 2017 12:53:36 -0500 Subject: [PATCH] fixing tests --- public/src/modules/helpers.js | 2 +- test/template-helpers.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js index 039eeb3250..07515b9834 100644 --- a/public/src/modules/helpers.js +++ b/public/src/modules/helpers.js @@ -212,7 +212,7 @@ if (block.teaser.user.picture) { return ''; } - return '
' + block.teaser.user['icon:text'] + '
'; + return '
' + block.teaser.user['icon:text'] + '
'; } if (block.user.picture) { return ''; diff --git a/test/template-helpers.js b/test/template-helpers.js index eb145e98a8..8ada13f29e 100644 --- a/test/template-helpers.js +++ b/test/template-helpers.js @@ -164,28 +164,28 @@ describe('helpers', function () { it('should render digest avatar', function (done) { var block = { teaser: { user: { username: 'baris', picture: '/uploads/1.png' } } }; var html = helpers.renderDigestAvatar(block); - assert.equal(html, ''); + assert.equal(html, ''); done(); }); it('should render digest avatar', function (done) { var block = { teaser: { user: { username: 'baris', 'icon:text': 'B', 'icon:bgColor': '#ff000' } } }; var html = helpers.renderDigestAvatar(block); - assert.equal(html, '
' + block.teaser.user['icon:text'] + '
'); + assert.equal(html, '
' + block.teaser.user['icon:text'] + '
'); done(); }); it('should render digest avatar', function (done) { var block = { user: { username: 'baris', picture: '/uploads/1.png' } }; var html = helpers.renderDigestAvatar(block); - assert.equal(html, ''); + assert.equal(html, ''); done(); }); it('should render digest avatar', function (done) { var block = { user: { username: 'baris', 'icon:text': 'B', 'icon:bgColor': '#ff000' } }; var html = helpers.renderDigestAvatar(block); - assert.equal(html, '
' + block.user['icon:text'] + '
'); + assert.equal(html, '
' + block.user['icon:text'] + '
'); done(); });