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

Commit ec1f4a8

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/ng/directive/ngClassSpec.js

+2
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,15 @@ describe('ngClass', function() {
152152
element.addClass('foo');
153153
$rootScope.dynCls = '';
154154
$rootScope.$digest();
155+
expect(element[0].className).toBe('ng-scope');
155156
}));
156157

157158

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

164166

0 commit comments

Comments
 (0)