From 00e11e317707c65c4a9e83c49e53fdee08556235 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Mon, 29 Jan 2024 19:25:43 +0530 Subject: [PATCH] fix: fixed ui module loading issue --- .../Collection/CollectionItem/GenerateCodeItem/index.js | 4 ++-- packages/bruno-tests/collection/ping.bru | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js index 45ab20bbed..ed1bc3f64f 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js @@ -8,8 +8,8 @@ import { findEnvironmentInCollection } from 'utils/collections'; // Todo: Fix this // import { interpolate } from '@usebruno/common'; -const brunoCommon = require('@usebruno/common'); -const { interpolate } = brunoCommon.default; +import brunoCommon from '@usebruno/common'; +const { interpolate } = brunoCommon; const interpolateUrl = ({ url, envVars, collectionVariables, processEnvVars }) => { if (!url || !url.length || typeof url !== 'string') { diff --git a/packages/bruno-tests/collection/ping.bru b/packages/bruno-tests/collection/ping.bru index 96a6eb89f5..eea7bae3af 100644 --- a/packages/bruno-tests/collection/ping.bru +++ b/packages/bruno-tests/collection/ping.bru @@ -29,10 +29,6 @@ assert { ~res.body: eq {{pong}} } -script:pre-request { - console.log(bru.getEnvName()); -} - tests { test("should ping pong", function() { const data = res.getBody();