mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Added unit test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user