var should = require('should'), // jshint ignore:line helperUtils = require('../../../server/helpers/utils'); describe('Helpers Utils', function () { describe('Word Count', function () { it('[success] can count words', function () { var html = 'Some words here', result = helperUtils.wordCount(html); result.should.equal(3); }); it('[success] sanitized HTML tags', function () { var html = '
This is a text example! Count me in ;)
This is a text example! I love Döner. Especially number 875.
This is a text example!\n Count me in ;)