17 lines
		
	
	
		
			532 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			532 B
		
	
	
	
		
			JavaScript
		
	
	
	
| 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();
 | |
| });
 |