mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-06 09:01:31 +08:00
20 lines
301 B
JavaScript
20 lines
301 B
JavaScript
'use strict';
|
|
|
|
describe('$document', function() {
|
|
var scope;
|
|
|
|
beforeEach(function() {
|
|
scope = angular.scope();
|
|
});
|
|
|
|
|
|
afterEach(function() {
|
|
dealoc(scope);
|
|
});
|
|
|
|
|
|
it("should inject $document", function() {
|
|
expect(scope.$service('$document')).toEqual(jqLite(document));
|
|
});
|
|
});
|