Sha256: 8a8a3507464b36d5df568e414ebd23062dd4fee8bcfc6550c46a88d67250ea04
Contents?: true
Size: 666 Bytes
Versions: 11
Compression:
Stored size: 666 Bytes
Contents
describe('attributeName filter', function() { var filter; beforeEach(angular.mock.module('PraxisDocBrowser')); beforeEach(inject(function(attributeNameFilter, $sce) { filter = function(input) { return $sce.getTrusted('html', attributeNameFilter(input)); }; })); it('only modifies input with one dot', function() { expect(function(str) { var dotsCount = str.split('.').length - 1; if (dotsCount !== 1) { return str === filter(str); } }).forAll(qc.string); }); it('adds a tag to the prefix', function() { expect(filter('ns.test')).toEqual('<span class="attribute-prefix">ns.</span>test'); }); });
Version data entries
11 entries across 11 versions & 1 rubygems