QUnit.module('Utils - escapeMarkup'); var Utils = require('select2/utils'); QUnit.test('text passes through', function (assert) { var text = 'testing this'; var escaped = Utils.escapeMarkup(text); assert.equal(text, escaped); }); QUnit.test('html tags are escaped', function (assert) { var text = ''; var escaped = Utils.escapeMarkup(text); assert.notEqual(text, escaped); assert.equal(escaped.indexOf('