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

Commit 21f875a

Browse files
committed
uses utils repo path
1 parent 583e190 commit 21f875a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test-cli/test-init.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ const nexpect = require('nexpect')
55
const rimraf = require('rimraf')
66
const path = require('path')
77
const fs = require('fs')
8+
const utils = require('../../src/cli/utils')
89

910
function repoExistsSync (p) {
10-
return fs.existsSync(path.join(process.env.IPFS_PATH, p))
11+
return fs.existsSync(path.join(utils.getRepoPath(), p))
1112
}
1213

1314
describe('init', function () {

0 commit comments

Comments
 (0)