From de118bc89fe335f83cfba79e2d0a9eea314a3fd8 Mon Sep 17 00:00:00 2001 From: alextrs Date: Fri, 21 Nov 2014 21:43:02 -0500 Subject: [PATCH] Added unit test --- test/unit/angular/service/popup.unit.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unit/angular/service/popup.unit.js b/test/unit/angular/service/popup.unit.js index d533752ff5..9e306fb24f 100644 --- a/test/unit/angular/service/popup.unit.js +++ b/test/unit/angular/service/popup.unit.js @@ -52,6 +52,13 @@ describe('$ionicPopup service', function() { var popupBody = popup.element[0].querySelector('.popup-body'); expect(popupBody).toBe(null); }); + it('should set the specified custom CSS class to popup container', function() { + var popup = TestUtil.unwrapPromise($ionicPopup._createPopup({ + template: 'Hello, friend!', + class: 'mycustomclass' + })); + expect(popup.element.hasClass('mycustomclass')).toBe(true); + }); describe('$buttonTapped', function() { var popup;