mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-02 17:26:31 +08:00
docs(compile/notassign): description for compile/notassign error
Closes #3459
This commit is contained in:
@@ -2110,7 +2110,7 @@ describe('$compile', function() {
|
||||
|
||||
componentScope.ref = 'ignore me';
|
||||
expect($rootScope.$apply).
|
||||
toThrow("[$compile:noass] Expression ''hello ' + name' used with directive 'myComponent' is non-assignable!");
|
||||
toThrow("[$compile:nonassign] Expression ''hello ' + name' used with directive 'myComponent' is non-assignable!");
|
||||
expect(componentScope.ref).toBe('hello world');
|
||||
// reset since the exception was rethrown which prevented phase clearing
|
||||
$rootScope.$$phase = null;
|
||||
@@ -3240,7 +3240,7 @@ describe('$compile', function() {
|
||||
};
|
||||
});
|
||||
});
|
||||
inject(function($compile, $rootScope) {
|
||||
inject(function($compile) {
|
||||
expect(function() {
|
||||
element = $compile(
|
||||
'<div>' +
|
||||
|
||||
Reference in New Issue
Block a user