test($compile): fix spelling error in assertion (ngAttr*)

The string 'test2' should be 'test3' as 'test2' has already been
tested with the previous assertion.
This commit is contained in:
Brian Fitzpatrick 2013-07-28 17:40:16 +01:00 committed by Pete Bacon Darwin
parent 258e986284
commit f6663b4314

View file

@ -3064,7 +3064,7 @@ describe('$compile', function() {
element = $compile('<span ng:attr:test="{{name}}" ng-Attr-test2="{{name}}" ng_Attr_test3="{{name}}"></span>')($rootScope);
expect(element.attr('test')).toBeUndefined();
expect(element.attr('test2')).toBeUndefined();
expect(element.attr('test2')).toBeUndefined();
expect(element.attr('test3')).toBeUndefined();
$rootScope.$digest();
expect(element.attr('test')).toBe('Misko');
expect(element.attr('test2')).toBe('Misko');