This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I was not able to get it working as it was; this should help a bit. See #43 (comment)
- Loading branch information
1 parent
bb63627
commit 2e4d611
Showing
3 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,8 @@ | |
"readable-stream": "1.1.13" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^3.2.0" | ||
"aegir": "^3.2.0", | ||
"ipfs": "^0.14.1" | ||
}, | ||
"contributors": [ | ||
"David Dias <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-env mocha */ | ||
'use strict' | ||
|
||
const test = require('./src/index.js') // Replace with interface-ipfs-core in your repo | ||
const IPFS = require('ipfs') | ||
|
||
const common = { | ||
setup: function (cb) { | ||
const ipfs = new IPFS() // Replace with your instance | ||
ipfs.load(() => { | ||
cb(null, ipfs) | ||
}) | ||
}, | ||
teardown: function (cb) { | ||
cb() | ||
} | ||
} | ||
|
||
test.files(common) |