feat(actionsheet): cssClass option

This commit is contained in:
Adam Bradley
2014-12-12 22:25:17 -06:00
parent 916ff63d46
commit 69c733a7cb
2 changed files with 10 additions and 1 deletions

View File

@@ -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);
}));
});