Skip to content

Commit ec1f4a8

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/ng/directive/ngClassSpec.js

Lines changed: 2 additions & 0 deletions
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)