error handling levels

This commit is contained in:
realaravinth
2021-06-29 23:20:54 +05:30
parent f10741d09f
commit 96fafb339c
5 changed files with 15 additions and 4 deletions

View File

@@ -18,11 +18,15 @@
import isBlankString from './isBlankString';
import {mockAlert} from '../setUpTests';
import setup from '../components/error/setUpTests';
'use strict';
mockAlert();
it('getFromUrl workds', () => {
document.querySelector('body').appendChild(setup());
expect(isBlankString('test', 'username')).toBe(false);
try {
isBlankString(' ', 'username');