2023-06-26 20:45:24 -06:00
|
|
|
import {showInfoToast, showErrorToast, showWarningToast} from './toast.js';
|
|
|
|
|
|
|
|
test('showInfoToast', async () => {
|
2023-08-23 01:25:13 -06:00
|
|
|
showInfoToast('success 😀', {duration: -1});
|
2023-06-26 20:45:24 -06:00
|
|
|
expect(document.querySelector('.toastify')).toBeTruthy();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('showWarningToast', async () => {
|
2023-08-23 01:25:13 -06:00
|
|
|
showWarningToast('warning 😐', {duration: -1});
|
2023-06-26 20:45:24 -06:00
|
|
|
expect(document.querySelector('.toastify')).toBeTruthy();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('showErrorToast', async () => {
|
2023-08-23 01:25:13 -06:00
|
|
|
showErrorToast('error 🙁', {duration: -1});
|
2023-06-26 20:45:24 -06:00
|
|
|
expect(document.querySelector('.toastify')).toBeTruthy();
|
|
|
|
});
|