Fix profile test failure.

This commit is contained in:
Bryce Johnson 2016-09-27 13:37:26 +02:00
parent 07bf262ffe
commit ed8f27e636

View file

@ -1,7 +1,7 @@
((global) => {
class Profile {
constructor({ form }) {
constructor({ form } = {}) {
this.onSubmitForm = this.onSubmitForm.bind(this);
this.form = form || $('.edit-user');
this.bindEvents();