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