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

refactor: use ipld-in-memory module #14

Merged
merged 1 commit into from
Jan 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"dirty-chai": "^2.0.1",
"ipld": "~0.20.2",
"ipld-dag-pb": "~0.15.2",
"ipld-in-memory": "^2.0.0",
"pull-pushable": "^2.2.0",
"pull-stream-to-stream": "^1.3.4",
"pull-zip": "^2.0.1",
Expand Down
3 changes: 2 additions & 1 deletion test/exporter-sharded.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const chai = require('chai')
chai.use(require('dirty-chai'))
const expect = chai.expect
const IPLD = require('ipld')
const inMemory = require('ipld-in-memory')
const UnixFS = require('ipfs-unixfs')
const pull = require('pull-stream/pull')
const values = require('pull-stream/sources/values')
Expand Down Expand Up @@ -54,7 +55,7 @@ describe('exporter sharded', function () {
}

before((done) => {
IPLD.inMemory((err, resolver) => {
inMemory(IPLD, (err, resolver) => {
expect(err).to.not.exist()

ipld = resolver
Expand Down
3 changes: 2 additions & 1 deletion test/exporter-subtree.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const chai = require('chai')
chai.use(require('dirty-chai'))
const expect = chai.expect
const IPLD = require('ipld')
const inMemory = require('ipld-in-memory')
const CID = require('cids')
const pull = require('pull-stream')
const randomBytes = require('./helpers/random-bytes')
Expand All @@ -19,7 +20,7 @@ describe('exporter subtree', () => {
let ipld

before((done) => {
IPLD.inMemory((err, resolver) => {
inMemory(IPLD, (err, resolver) => {
expect(err).to.not.exist()

ipld = resolver
Expand Down
3 changes: 2 additions & 1 deletion test/exporter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const chai = require('chai')
chai.use(require('dirty-chai'))
const expect = chai.expect
const IPLD = require('ipld')
const inMemory = require('ipld-in-memory')
const UnixFS = require('ipfs-unixfs')
const pull = require('pull-stream')
const zip = require('pull-zip')
Expand Down Expand Up @@ -171,7 +172,7 @@ describe('exporter', () => {
}

before((done) => {
IPLD.inMemory((err, resolver) => {
inMemory(IPLD, (err, resolver) => {
expect(err).to.not.exist()

ipld = resolver
Expand Down