UNPKG

shunter

Version:

A Node.js application built to read JSON and translate it into HTML

17 lines (13 loc) 403 B
'use strict'; var assert = require('proclaim'); var helper = require('../../helpers/template.js')(); describe('Dust Filter: stripTags', function() { it('Should be able to strip html from a string', function(done) { helper.render('{test|stripTags}', { test: '<p>Hello <a href="#">world</a></p>' }, function(err, dom, str) { assert.strictEqual(str, 'Hello world'); done(); }); }); });