angular.js/test/service/windowSpec.js

18 lines
264 B
JavaScript
Raw Normal View History

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);
});
});