This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
7 changed files
with
135 additions
and
17 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
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
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
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,86 @@ | ||
/* globals describe, before, it */ | ||
|
||
'use strict' | ||
|
||
const expect = require('chai').expect | ||
// const base58 = require('bs58') | ||
const IPFS = require('../../src/ipfs-core') | ||
// const Block = require('ipfs-merkle-dag').Block | ||
|
||
// const isNode = !global.window | ||
|
||
// TODO use arrow funtions again when https://github.com/webpack/webpack/issues/1944 is fixed | ||
describe('object', function () { | ||
var ipfs | ||
|
||
before(function (done) { | ||
ipfs = new IPFS() | ||
done() | ||
}) | ||
|
||
it('create', function (done) { | ||
ipfs.object.create(function (err, obj) { | ||
expect(err).to.not.exist | ||
console.log(obj) | ||
done() | ||
}) | ||
}) | ||
|
||
it.skip('patch append-data', function (done) { | ||
|
||
}) | ||
|
||
it.skip('patch add-link', function (done) { | ||
|
||
}) | ||
|
||
it.skip('patch rm-link', function (done) { | ||
|
||
}) | ||
|
||
it.skip('patch set-data', function (done) { | ||
|
||
}) | ||
|
||
it.skip('patch append-data go-ipfs mDAG obj', function (done) { | ||
|
||
}) | ||
|
||
it.skip('patch add-link go-ipfs mDAG obj', function (done) { | ||
|
||
}) | ||
|
||
it.skip('patch rm-link go-ipfs mDAG obj', function (done) { | ||
|
||
}) | ||
|
||
it.skip('patch set-data go-ipfs mDAG obj', function (done) { | ||
|
||
}) | ||
|
||
it.skip('data', function (done) { | ||
|
||
}) | ||
|
||
it.skip('links', function (done) { | ||
|
||
}) | ||
|
||
it.skip('get', function (done) { | ||
|
||
}) | ||
|
||
it.skip('get cycle', function (done) { | ||
// 1. get a go-ipfs marshaled DAG Node | ||
// 2. store it and fetch it again | ||
// 3. check if still matches (ipfs-merkle-dag should not mangle it) | ||
}) | ||
|
||
it.skip('put', function (done) { | ||
|
||
}) | ||
|
||
it.skip('stat', function (done) { | ||
|
||
}) | ||
}) |