UNPKG

angular-ui-bootstrap-2.0

Version:

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-ui/bootstrap?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://secure.travis-ci.org/angular-ui/bootstrap.svg)](http://travis-

17 lines (13 loc) 561 B
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(); }); });