Sha256: 48698ff629f2489f10bf69260ac7c7b04087649f2f72bfbd240bd4f0e7ff14dd
Contents?: true
Size: 675 Bytes
Versions: 12
Compression:
Stored size: 675 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 or more dots', function() { expect(function(str) { var dotsCount = str.split('.').length - 1; if (dotsCount === 0) { 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
12 entries across 12 versions & 1 rubygems