Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 16e666b

Browse files
committed
fixup! test(ngClass): add some tests about one-time bindings and objects inside arrays
1 parent 181c51b commit 16e666b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/ng/directive/ngClassSpec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ describe('ngClass', function() {
547547
})
548548
);
549549

550-
it('should do value remove the watcher when static map one-time binding',
550+
it('should remove the watcher when static map one-time binding',
551551
inject(function($rootScope, $compile) {
552552
element = $compile('<div ng-class="::{foo: fooPresent}"></div>')($rootScope);
553553
$rootScope.$digest();
@@ -568,6 +568,8 @@ describe('ngClass', function() {
568568
element = $compile('<div ng-class="classVar"></div>')($rootScope);
569569
$rootScope.$digest();
570570

571+
expect(element).toHaveClass('orange');
572+
571573
$rootScope.classVar[0].orange = false;
572574
$rootScope.$digest();
573575

0 commit comments

Comments
 (0)