mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
frontend linting
This commit is contained in:
@@ -15,17 +15,17 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import form from './index';
|
||||
import form from "./index";
|
||||
|
||||
it('sudo form works', () => {
|
||||
it("sudo form works", () => {
|
||||
try {
|
||||
form.get();
|
||||
} catch (e) {
|
||||
expect(e.message).toBe('Element form is undefined');
|
||||
expect(e.message).toBe("Element form is undefined");
|
||||
}
|
||||
|
||||
const element = document.createElement('form');
|
||||
element.id = 'form';
|
||||
const element = document.createElement("form");
|
||||
element.id = "form";
|
||||
document.body.appendChild(element);
|
||||
expect(form.get()).toBe(element);
|
||||
});
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import LazyElement from '../../utils/lazyElement';
|
||||
import LazyElement from "../../utils/lazyElement";
|
||||
|
||||
const ID = 'form';
|
||||
const ID = "form";
|
||||
const FORM = new LazyElement(ID);
|
||||
|
||||
export default FORM;
|
||||
|
||||
Reference in New Issue
Block a user