fix: fixed ui module loading issue

This commit is contained in:
Anoop M D 2024-01-29 19:25:43 +05:30
parent 54d4a74355
commit 00e11e3177
2 changed files with 2 additions and 6 deletions

View File

@ -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') {

View File

@ -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();