Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Mar 19, 2020
1 parent 5b8dacb commit e63a233
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/public/notifications/toasts/toasts_api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ describe('#addInfo()', () => {

it('returns the created toast', async () => {
const toasts = new ToastsApi(toastDeps());
const toast = toasts.addInfo({});
const toast = toasts.addInfo({}, { toastLifeTimeMs: 1 });
const currentToasts = await getCurrentToasts(toasts);
expect(currentToasts[0].toastLifeTimeMs).toBe(1);
expect(currentToasts[0]).toBe(toast);
});
});
Expand Down

0 comments on commit e63a233

Please sign in to comment.