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

Commit 3f769fc

Browse files
committed
test: confirm that loadFixtures does not require special pathing for browser
1 parent 959afe8 commit 3f769fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/get.spec.js

Lines changed: 2 additions & 4 deletions
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)