From b76ca7c737a12e54b944c3b3de2d17f586bfe2a8 Mon Sep 17 00:00:00 2001 From: Anton Lykhoyda Date: Thu, 15 Dec 2022 17:35:22 +0100 Subject: [PATCH] fix: dappeteer dependency (#229) fix https://github.com/ChainSafe/dappeteer/issues/228 --- src/constants.ts | 1 + src/snap/install.ts | 2 +- test/constant.ts | 5 +---- 3 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 src/constants.ts diff --git a/src/constants.ts b/src/constants.ts new file mode 100644 index 00000000..b557bb3c --- /dev/null +++ b/src/constants.ts @@ -0,0 +1 @@ +export const EXAMPLE_WEBSITE = "http://example.org"; diff --git a/src/snap/install.ts b/src/snap/install.ts index 2f90a26f..c4aaf4b8 100644 --- a/src/snap/install.ts +++ b/src/snap/install.ts @@ -8,7 +8,7 @@ import { profileDropdownClick, } from "../helpers"; import { DappeteerPage } from "../page"; -import { EXAMPLE_WEBSITE } from "../../test/constant"; +import { EXAMPLE_WEBSITE } from "../constants"; import { startSnapServer, toUrl } from "./install-utils"; import { flaskOnly, isFirstElementAppearsFirst } from "./utils"; import { InstallSnapResult } from "./types"; diff --git a/test/constant.ts b/test/constant.ts index 005d027d..e2c5ecc9 100644 --- a/test/constant.ts +++ b/test/constant.ts @@ -1,9 +1,6 @@ import { Provider, Server } from "ganache"; - import web3 from "web3"; -import { Dappeteer, DappeteerPage } from "../src"; - -import { DappeteerBrowser } from "../src/browser"; +import { Dappeteer, DappeteerPage, DappeteerBrowser } from "../src"; import { Contract, Snaps } from "./deploy"; export type InjectableContext = Readonly<{