blob: 00038621a495fb329d6fddfcab2da0797fd9e420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
'use strict';
describe('ngInit', function() {
var element;
afterEach(function() {
dealoc(element);
});
it("should init model", inject(function($rootScope, $compile) {
element = $compile('<div ng-init="a=123"></div>')($rootScope);
expect($rootScope.a).toEqual(123);
}));
});
|