test(infiniteScroll): add test for custom spinners in infiniteScroll

This commit is contained in:
perry
2015-01-21 16:34:07 -06:00
parent 7913ee0f28
commit c85730e32b

View File

@@ -136,6 +136,12 @@ describe('ionicInfiniteScroll directive', function() {
el.scope().$apply('someIcon = "super-icon"');
expect(icon.hasClass('super-icon')).toBe(true);
});
it('should allow interpolated spinner attr', function() {
var el = setupJS('spinner="lines"');
var icon = angular.element(el[0].querySelector('.spinner'));
expect(icon[0].className.indexOf('lines')).not.toBe(-1);
});
});
describe('getMaxScroll', function() {