From d3a3888d53f7facff0f2aaef9bd218013ba64f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Tue, 19 Jul 2022 16:22:10 +0100 Subject: [PATCH] Remove unescessary test for JS files --- js/tests/bring-it-to-life-dom_test.mjs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/js/tests/bring-it-to-life-dom_test.mjs b/js/tests/bring-it-to-life-dom_test.mjs index a9e25ffb2..5d85eb95b 100644 --- a/js/tests/bring-it-to-life-dom_test.mjs +++ b/js/tests/bring-it-to-life-dom_test.mjs @@ -1,17 +1,5 @@ export const tests = [] -tests.push(async ({ eq, page }) => { - // check the JS script has been linked - await eq.$('script', { type: 'module' }) - - // check the JS script has a valid src - const source = await page.$eval( - 'script', - (node) => node.src.includes('.js') && node.src, - ) - if (!source.length) throw Error('missing script src') -}) - tests.push(async ({ eq, page }) => { // check the class 'eye-closed' has been added in the CSS eq.css('.eye-closed', {