Skip to content

Commit

Permalink
fix mint tests import failure for helpers (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx authored Nov 19, 2021
1 parent 99f8d56 commit 0fca6d1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/test/functional/functional-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ const assert = chai.assert
const superagent = require('superagent')
const uuid = require("uuid")
const step = require("mocha-steps").step
import { getVersionId, isArray } from "../../../dist/main/helpers"

let helpers
try{
helpers= require("../../../dist/main/helpers")
}catch (err){
helpers = require('minio/dist/main/helpers')
}

let minio

try {
Expand All @@ -37,6 +44,8 @@ try {
minio = require('minio')
}

const { getVersionId, isArray } = helpers

require('source-map-support').install()

describe('functional tests', function() {
Expand Down

0 comments on commit 0fca6d1

Please sign in to comment.