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

Commit ff16d22

Browse files
RichardLittbtford
authored andcommitted
test(ngClass): add missing assertions
1 parent d02fa32 commit ff16d22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/ng/directive/ngClassSpec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,15 @@ describe('ngClass', function() {
153153
element.addClass('foo');
154154
$rootScope.dynCls = '';
155155
$rootScope.$digest();
156+
expect(element[0].className).toBe('ng-scope');
156157
}));
157158

158159

159160
it('should convert undefined and null values to an empty string', inject(function($rootScope, $compile) {
160161
element = $compile('<div ng-class="dynCls"></div>')($rootScope);
161162
$rootScope.dynCls = [undefined, null];
162163
$rootScope.$digest();
164+
expect(element[0].className).toBe('ng-scope');
163165
}));
164166

165167

0 commit comments

Comments
 (0)