diff --git a/core/frontend/helpers/post_class.js b/core/frontend/helpers/post_class.js index 83cbbaaa9b..2369b737eb 100644 --- a/core/frontend/helpers/post_class.js +++ b/core/frontend/helpers/post_class.js @@ -14,8 +14,6 @@ module.exports = function post_class() { // eslint-disable-line camelcase image = this.post && this.post.feature_image ? this.post.feature_image : this.feature_image || false, page = this.post && this.post.page ? this.post.page : this.page || false; - console.log(this); - if (tags) { classes = classes.concat(tags.map(function (tag) { return 'tag-' + tag.slug; diff --git a/core/test/unit/helpers/post_class_spec.js b/core/test/unit/helpers/post_class_spec.js index d157ae6e00..7197357add 100644 --- a/core/test/unit/helpers/post_class_spec.js +++ b/core/test/unit/helpers/post_class_spec.js @@ -31,7 +31,7 @@ describe('{{post_class}} helper', function () { rendered = helpers.post_class.call(post); should.exist(rendered); - rendered.string.should.equal('post featured no-image'); + rendered.string.should.equal('post featured'); }); it('can render page class', function () { @@ -42,8 +42,8 @@ describe('{{post_class}} helper', function () { rendered.string.should.equal('post no-image page'); }); - it('can render page class without no-image class', function () { - var post = {page: true, featured_image: 'asdasdas'}, + it('can render page class without no-image class', function () { + var post = {page: true, feature_image: 'asdasdas'}, rendered = helpers.post_class.call(post); should.exist(rendered);