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 45ab20bbe..ed1bc3f64 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 96a6eb89f..eea7bae3a 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();