From 7abc995ffea2c142f59520c94866f07be1e1fd06 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 16 Nov 2022 16:46:02 -0800 Subject: [PATCH] fix linting errors Signed-off-by: Arthur Lu --- source/assets/scripts/main.e2e.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/assets/scripts/main.e2e.test.js b/source/assets/scripts/main.e2e.test.js index 2a61fc5..a102b53 100644 --- a/source/assets/scripts/main.e2e.test.js +++ b/source/assets/scripts/main.e2e.test.js @@ -1,6 +1,6 @@ import {strict as assert} from "node:assert"; -import {describe, it, beforeEach} from "mocha"; -import puppeteer from 'puppeteer-core'; +import {describe, it, beforeEach, afterEach} from "mocha"; +import puppeteer from "puppeteer-core"; import { exit } from "node:process"; describe("test App end to end", async () => { @@ -12,10 +12,10 @@ describe("test App end to end", async () => { browser = await puppeteer.launch(); page = await browser.newPage(); try{ - await page.goto('http://localhost:8080', {timeout: 1000}); + await page.goto("http://localhost:8080", {timeout: 1000}); } catch (error) { - console.log("❌ failed to connect to localhost webserver on port 8080") + console.log("❌ failed to connect to localhost webserver on port 8080"); exit(1); } });