angular.js/test/service/windowSpec.js
2011-10-11 11:01:46 -07:00

19 lines
282 B
JavaScript

'use strict';
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);
});
});