mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
error handling in auth
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user