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

Commit a699324

Browse files
committed
Merge pull request #274 from ipfs/fix/last-pr
fix repo path for tests in browser
2 parents 6f70f83 + 8080a5f commit a699324

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/core-tests/repo-path.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
'use strict'
22

33
const path = require('path')
4+
const isNode = require('detect-node')
45

5-
module.exports = path.join(__dirname, '../repo-tests-run')
6+
if (isNode) {
7+
module.exports = path.join(__dirname, '../repo-tests-run')
8+
} else {
9+
module.exports = 'ipfs'
10+
}

0 commit comments

Comments
 (0)