Sha256: 3d943ce82860090e0b511aebcb1e215d236efbd0f392ff3de24fc6efcbc237bc
Contents?: true
Size: 561 Bytes
Versions: 8
Compression:
Stored size: 561 Bytes
Contents
describe('Security concerns', function() { var highlightFilter, $sanitize, logSpy; beforeEach(module('ui.bootstrap.typeahead', 'ngSanitize')); beforeEach(inject(function (uibTypeaheadHighlightFilter, _$sanitize_, $log) { highlightFilter = uibTypeaheadHighlightFilter; $sanitize = _$sanitize_; logSpy = spyOn($log, 'warn'); })); it('should not call the $log service when ngSanitize is present', function() { highlightFilter('before <script src="">match</script> after', 'match'); expect(logSpy).not.toHaveBeenCalled(); }); });
Version data entries
8 entries across 8 versions & 1 rubygems