Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 9dc4c15

Browse files
authored
Merge pull request #533 from ipfs/fix/load-fixtures
Fix/load fixtures
2 parents dd8ee08 + 3f769fc commit 9dc4c15

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
"gulp": "^3.9.1",
6767
"hapi": "^16.1.0",
6868
"interface-ipfs-core": "~0.24.1",
69-
"ipfsd-ctl": "~0.18.2",
69+
"ipfsd-ctl": "~0.18.3",
7070
"pre-commit": "^1.2.2",
7171
"socket.io": "^1.7.2",
7272
"socket.io-client": "^1.7.2",
73-
"stream-equal": "^0.1.12"
73+
"stream-equal": "^0.1.13"
7474
},
7575
"pre-commit": [
7676
"lint",
@@ -124,4 +124,4 @@
124124
"url": "https://github.com/ipfs/js-ipfs-api/issues"
125125
},
126126
"homepage": "https://github.com/ipfs/js-ipfs-api"
127-
}
127+
}

test/get.spec.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ const path = require('path')
1313
const loadFixture = require('aegir/fixtures')
1414
const FactoryClient = require('./ipfs-factory/client')
1515

16-
let testfile
16+
const testfile = loadFixture(__dirname, '/fixtures/testfile.txt')
1717
let testfileBig
1818
let tfbPath
19+
1920
if (isNode) {
2021
tfbPath = path.join(__dirname, '/fixtures/15mb.random')
2122
testfileBig = fs.createReadStream(tfbPath, { bufferSize: 128 })
22-
testfile = loadFixture(__dirname, '/fixtures/testfile.txt')
23-
} else {
24-
testfile = loadFixture(__dirname, 'fixtures/testfile.txt')
2523
}
2624

2725
describe('.get', () => {

0 commit comments

Comments
 (0)