From 254a9409e618ae3001946aae6a7621e22bd8c706 Mon Sep 17 00:00:00 2001 From: naz_dou Date: Wed, 20 May 2020 15:52:43 +0300 Subject: [PATCH] feat(AEX_2): Fix RPC test's --- examples/browser/extension/src/js/inject.js | 2 +- test/integration/rpc.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/browser/extension/src/js/inject.js b/examples/browser/extension/src/js/inject.js index dc982ba05c..e93dbfaa94 100644 --- a/examples/browser/extension/src/js/inject.js +++ b/examples/browser/extension/src/js/inject.js @@ -2,7 +2,7 @@ import BrowserRuntimeConnection from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection/browser-runtime' import BrowserWindowMessageConnection from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection/browser-window-message' -import { getBrowserAPI, isInIframe } from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/helpers' +import { getBrowserAPI } from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/helpers' import { MESSAGE_DIRECTION } from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/schema' import ContentScriptBridge from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/content-script-bridge' diff --git a/test/integration/rpc.js b/test/integration/rpc.js index 9cc6b21f7b..a163c1ee03 100644 --- a/test/integration/rpc.js +++ b/test/integration/rpc.js @@ -674,5 +674,6 @@ describe('Aepp<->Wallet', function () { const getConnections = (direct) => { global.chrome = { runtime: {} } global.window = { location: { origin: '//test' } } + global.location = { protocol: 'http://test.com' } return getFakeConnections(direct) }