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