mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(actionsheet): cssClass option
This commit is contained in:
@@ -103,4 +103,12 @@ describe('Ionic ActionSheet Service', function() {
|
||||
expect(scope.cancel).not.toHaveBeenCalled();
|
||||
}));
|
||||
|
||||
it('should add css class to element from cssClass option', inject(function($rootScope) {
|
||||
var scope = setup({
|
||||
cssClass: 'custom-class'
|
||||
});
|
||||
scope.showSheet();
|
||||
expect(scope.element.hasClass('custom-class')).toBe(true);
|
||||
}));
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user