From 20535070047381bea129a4130aaee23db2439fa6 Mon Sep 17 00:00:00 2001 From: Vladimir Kalnitsky Date: Tue, 20 Feb 2024 23:13:11 +0400 Subject: [PATCH] Remove DefinePlugin dependency from the tests --- src/Internal/JsWebSocket.js | 2 -- test/CslGc.js | 1 - test/Wallet/Cip30/SignData.js | 10 +--------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Internal/JsWebSocket.js b/src/Internal/JsWebSocket.js index ac34edbb12..e05ce2748c 100644 --- a/src/Internal/JsWebSocket.js +++ b/src/Internal/JsWebSocket.js @@ -1,5 +1,3 @@ -/* global BROWSER_RUNTIME */ - import ReconnectingWebSocket from "reconnecting-websocket"; import WebSocket from "isomorphic-ws"; diff --git a/test/CslGc.js b/test/CslGc.js index bac78951b6..43539ec39a 100644 --- a/test/CslGc.js +++ b/test/CslGc.js @@ -1,4 +1,3 @@ -/* global BROWSER_RUNTIME */ import * as lib from "@mlabs-haskell/cardano-serialization-lib-gc"; import process from "process"; diff --git a/test/Wallet/Cip30/SignData.js b/test/Wallet/Cip30/SignData.js index 20554c46c6..353135d766 100644 --- a/test/Wallet/Cip30/SignData.js +++ b/test/Wallet/Cip30/SignData.js @@ -1,13 +1,5 @@ -/* global BROWSER_RUNTIME */ - import * as csl from "@mlabs-haskell/cardano-serialization-lib-gc"; - -let lib; -if (typeof BROWSER_RUNTIME != "undefined" && BROWSER_RUNTIME) { - lib = await import("@emurgo/cardano-message-signing-browser"); -} else { - lib = await import("@emurgo/cardano-message-signing-nodejs"); -} +import * as lib from "@mlabs-haskell/cardano-message-signing"; function opt_chain(maybe, obj) { const isNothing = x => x === null || x === undefined;