import {showInfoToast, showErrorToast, showWarningToast} from './toast.js'; test('showInfoToast', async () => { showInfoToast('success π', {duration: -1}); expect(document.querySelector('.toastify')).toBeTruthy();}); test('showWarningToast', async () => { showWarningToast('warning π', {duration: -1}); expect(document.querySelector('.toastify')).toBeTruthy();}); test('showErrorToast', async () => { showErrorToast('error π', {duration: -1}); expect(document.querySelector('.toastify')).toBeTruthy();});
import {showInfoToast, showErrorToast, showWarningToast} from './toast.js';
test('showInfoToast', async () => {
showInfoToast('success π', {duration: -1});
expect(document.querySelector('.toastify')).toBeTruthy();
});
test('showWarningToast', async () => {
showWarningToast('warning π', {duration: -1});
expect(document.querySelector('.toastify')).toBeTruthy();
});
test('showErrorToast', async () => {
showErrorToast('error π', {duration: -1});
expect(document.querySelector('.toastify')).toBeTruthy();
});