error handling in auth

This commit is contained in:
realaravinth
2021-06-28 23:03:15 +05:30
parent d298ef4719
commit c581d8d0a3
12 changed files with 51 additions and 15 deletions

View File

@@ -18,16 +18,12 @@
import createError from './index';
import * as e from './index';
import setup from './setUpTests';
'use strict';
jest.useFakeTimers();
const setup = () => {
let x = document.createElement('div');
x.id = e.ERR_CONTAINER_ID;
return x;
};
it('checks if error boxes work', () => {
document.body.append(setup());