16 lines Β· 532 B Β· JavaScript
RawDownload
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();});