mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-22 17:40:22 +00:00
18 lines
264 B
JavaScript
18 lines
264 B
JavaScript
|
|
describe('$window', function() {
|
||
|
|
var scope;
|
||
|
|
|
||
|
|
beforeEach(function(){
|
||
|
|
scope = angular.scope();
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
afterEach(function(){
|
||
|
|
dealoc(scope);
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
it("should inject $window", function(){
|
||
|
|
expect(scope.$service('$window')).toBe(window);
|
||
|
|
});
|
||
|
|
});
|