mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-20 11:48:03 +02:00
fix: fixed ui module loading issue
This commit is contained in:
parent
54d4a74355
commit
00e11e3177
@ -8,8 +8,8 @@ import { findEnvironmentInCollection } from 'utils/collections';
|
|||||||
|
|
||||||
// Todo: Fix this
|
// Todo: Fix this
|
||||||
// import { interpolate } from '@usebruno/common';
|
// import { interpolate } from '@usebruno/common';
|
||||||
const brunoCommon = require('@usebruno/common');
|
import brunoCommon from '@usebruno/common';
|
||||||
const { interpolate } = brunoCommon.default;
|
const { interpolate } = brunoCommon;
|
||||||
|
|
||||||
const interpolateUrl = ({ url, envVars, collectionVariables, processEnvVars }) => {
|
const interpolateUrl = ({ url, envVars, collectionVariables, processEnvVars }) => {
|
||||||
if (!url || !url.length || typeof url !== 'string') {
|
if (!url || !url.length || typeof url !== 'string') {
|
||||||
|
@ -29,10 +29,6 @@ assert {
|
|||||||
~res.body: eq {{pong}}
|
~res.body: eq {{pong}}
|
||||||
}
|
}
|
||||||
|
|
||||||
script:pre-request {
|
|
||||||
console.log(bru.getEnvName());
|
|
||||||
}
|
|
||||||
|
|
||||||
tests {
|
tests {
|
||||||
test("should ping pong", function() {
|
test("should ping pong", function() {
|
||||||
const data = res.getBody();
|
const data = res.getBody();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user