From 5044d78378c73f0cc06b04404c9bc00d3f26a73c Mon Sep 17 00:00:00 2001 From: realaravinth Date: Wed, 21 Jul 2021 20:48:31 +0530 Subject: [PATCH] update tests to use lazyelement --- templates/auth/sudo/getForm.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/auth/sudo/getForm.test.ts b/templates/auth/sudo/getForm.test.ts index a49a5ea8..fd991b29 100644 --- a/templates/auth/sudo/getForm.test.ts +++ b/templates/auth/sudo/getForm.test.ts @@ -19,13 +19,13 @@ import form from './index'; it('sudo form works', () => { try { - form(); + form.get(); } catch (e) { - expect(e.message).toBe("Couldn't form element, is the component loaded?"); + expect(e.message).toBe("Element form is undefined"); } const element = document.createElement('form'); element.id = 'form'; document.body.appendChild(element); - expect(form()).toBe(element); + expect(form.get()).toBe(element); });