/
githubmirror
/
angular.js
Обзор
Документация
Войти
/
githubmirror
/
angular.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.5.10
test/ng/documentSpec.js
29 строк
703 B
Michał Gołębiowski
chore(eslint): enable `quotes: ["error", "single"]`
24 ноя 2016, 12:26
24 ноя 2016, 12:26
9a9b07d
Код
Авторство
О чём код?
'use strict'; describe('$document', function() { it('should inject $document', inject(function($document) { expect($document).toEqual(jqLite(window.document)); })); it('should be able to mock $document object', function() { module({$document: {}}); inject(function($httpBackend, $http) { $httpBackend.expectGET('/dummy').respond('dummy'); $http.get('/dummy'); $httpBackend.flush(); }); }); it('should be able to mock $document array', function() { module({$document: [{}]}); inject(function($httpBackend, $http) { $httpBackend.expectGET('/dummy').respond('dummy'); $http.get('/dummy'); $httpBackend.flush(); }); }); });