From 5030246c5db05adf5b7ed9629cc2277ca9f97f4f Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 27 Apr 2016 14:07:38 -0400 Subject: [PATCH] test(toast): add karma test for toast --- .../components/toast/test/basic/toast.spec.ts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ionic/components/toast/test/basic/toast.spec.ts 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'); + }); + + }); +}); + +}