Skip to content

Commit

Permalink
test(toast): add karma test for toast
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Apr 27, 2016
1 parent d7d4742 commit 5030246
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ionic/components/toast/test/basic/toast.spec.ts
Original file line number Diff line number Diff line change
@@ -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');
});

});
});

}

0 comments on commit 5030246

Please sign in to comment.