mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-27 01:19:09 +00:00
fix linting errors
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
cbe8da609c
commit
7abc995ffe
@ -1,6 +1,6 @@
|
|||||||
import {strict as assert} from "node:assert";
|
import {strict as assert} from "node:assert";
|
||||||
import {describe, it, beforeEach} from "mocha";
|
import {describe, it, beforeEach, afterEach} from "mocha";
|
||||||
import puppeteer from 'puppeteer-core';
|
import puppeteer from "puppeteer-core";
|
||||||
import { exit } from "node:process";
|
import { exit } from "node:process";
|
||||||
|
|
||||||
describe("test App end to end", async () => {
|
describe("test App end to end", async () => {
|
||||||
@ -12,10 +12,10 @@ describe("test App end to end", async () => {
|
|||||||
browser = await puppeteer.launch();
|
browser = await puppeteer.launch();
|
||||||
page = await browser.newPage();
|
page = await browser.newPage();
|
||||||
try{
|
try{
|
||||||
await page.goto('http://localhost:8080', {timeout: 1000});
|
await page.goto("http://localhost:8080", {timeout: 1000});
|
||||||
}
|
}
|
||||||
catch (error) {
|
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);
|
exit(1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user