diff --git a/ionic/components/toast/test/basic/toast.spec.ts b/ionic/components/toast/test/basic/toast.spec.ts new file mode 100644 index 0000000000..f0fd7f44f6 --- /dev/null +++ b/ionic/components/toast/test/basic/toast.spec.ts @@ -0,0 +1,23 @@ +import {Toast} from '../../../../ionic'; + +export function run() { + +describe('Toast', () => { + + describe('create', () => { + + it('should create toast with close button', () => { + let toast = Toast.create({ + message: 'Please Wait...', + showCloseButton: true + }); + + expect(toast.message).toEqual('Please Wait...'); + expect(toast.showCloseButton).toEqual(true); + expect(toast.closeButtonText).toEqual('Close'); + }); + + }); +}); + +}