From c85730e32bb92d4113dc5b8f086978e76a2f46f6 Mon Sep 17 00:00:00 2001 From: perry Date: Wed, 21 Jan 2015 16:34:07 -0600 Subject: [PATCH] test(infiniteScroll): add test for custom spinners in infiniteScroll --- test/unit/angular/directive/infiniteScroll.unit.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit/angular/directive/infiniteScroll.unit.js b/test/unit/angular/directive/infiniteScroll.unit.js index 5b2eacb972..9b5a02e8bd 100644 --- a/test/unit/angular/directive/infiniteScroll.unit.js +++ b/test/unit/angular/directive/infiniteScroll.unit.js @@ -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() {