-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(toast): add karma test for toast
- Loading branch information
1 parent
d7d4742
commit 5030246
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
}); | ||
|
||
}); | ||
}); | ||
|
||
} |