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.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* eslint-env mocha */ | ||
/* eslint max-nested-callbacks: ["error", 8] */ | ||
|
||
'use strict' | ||
|
||
const expect = require('chai').expect | ||
const dagPB = require('ipld-dag-pb') | ||
const DAGNode = dagPB.DAGNode | ||
const dagCBOR = require('ipld-dag-pb') | ||
|
||
module.exports = (common) => { | ||
describe('.dag.resolve', () => { | ||
let ipfs | ||
|
||
before((done) => { | ||
common.setup((err, factory) => { | ||
expect(err).to.not.exist | ||
factory.spawnNode((err, node) => { | ||
expect(err).to.not.exist | ||
ipfs = node | ||
done() | ||
}) | ||
}) | ||
}) | ||
|
||
after((done) => { | ||
common.teardown(done) | ||
}) | ||
|
||
describe('callback API', () => { | ||
describe('.resolve', () => { | ||
it.skip('dag-pb local scope', (done) => {}) | ||
it.skip('dag-pb one level', (done) => {}) | ||
it.skip('dag-pb two levels', (done) => {}) | ||
it.skip('dag-cbor local scope', (done) => {}) | ||
it.skip('dag-cbor one level', (done) => {}) | ||
it.skip('dag-cbor two levels', (done) => {}) | ||
it.skip('from dag-pb to dag-cbor', (done) => {}) | ||
it.skip('from dag-cbor to dag-pb', (done) => {}) | ||
}) | ||
}) | ||
|
||
describe('promise API', () => { | ||
describe('.resolve', () => {}) | ||
}) | ||
}) | ||
} |