mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
23 lines
427 B
TypeScript
23 lines
427 B
TypeScript
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.data.message).toEqual('Please Wait...');
|
|
expect(toast.data.showCloseButton).toEqual(true);
|
|
});
|
|
|
|
});
|
|
});
|
|
|
|
}
|