fradrive/frontend/src/utils/async-form/async-form.spec.js
2019-07-03 11:59:02 +02:00

22 lines
412 B
JavaScript

import { AsyncForm } from './async-form';
describe('AsyncForm', () => {
let asyncForm;
beforeEach(() => {
const element = document.createElement('div');
asyncForm = new AsyncForm(element);
});
it('should create', () => {
expect(asyncForm).toBeTruthy();
});
it('should throw if called without an element', () => {
expect(() => {
new AsyncForm();
}).toThrow();
});
});