Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b37efc9

Browse files
committed
chore: rebase
1 parent 6ee1f10 commit b37efc9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/utils/ipfs-exec.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const expect = chai.expect
77
chai.use(dirtyChai)
88
const path = require('path')
99
const _ = require('lodash')
10-
const yargs = require('yargs')
1110

1211
// This is our new test utility to easily check and execute ipfs cli commands.
1312
//
@@ -34,10 +33,11 @@ module.exports = (repoPath, opts) => {
3433
}))
3534

3635
const execute = (exec, args) => {
37-
// Adding '--' at the front of the command allows us to parse commands that
38-
// have a parameter with spaces in it, eg
39-
// ipfs refs --format="<src> -> <dst>"
40-
const cp = exec(yargs('-- ' + args[0]).argv._)
36+
if (args.length === 1) {
37+
args = args[0].split(' ')
38+
}
39+
40+
const cp = exec(args)
4141
const res = cp.then((res) => {
4242
// We can't escape the os.tmpdir warning due to:
4343
// https://github.com/shelljs/shelljs/blob/master/src/tempdir.js#L43

0 commit comments

Comments
 (0)