mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-13 08:56:40 +08:00
20 lines
282 B
JavaScript
20 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);
|
|
});
|
|
});
|