forked from ipfs-inactive/js-ipfs-http-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: spec for submodules requiring (ipfs-inactive#544).
- Loading branch information
Showing
2 changed files
with
77 additions
and
76 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,77 @@ | ||
/* eslint-env mocha */ | ||
'use strict' | ||
|
||
const chai = require('chai') | ||
const dirtyChai = require('dirty-chai') | ||
const expect = chai.expect | ||
chai.use(dirtyChai) | ||
|
||
describe('submodules', () => { | ||
describe('bitswap', () => { | ||
it('.wantlist', () => { | ||
const wantlist = require('../src/api/bitswap/wantlist') | ||
expect(wantlist).to.be.a('function') | ||
}) | ||
|
||
it('.stat', () => { | ||
const stat = require('../src/api/bitswap/stat') | ||
expect(stat).to.be.a('function') | ||
}) | ||
|
||
it('.unwant', () => { | ||
const unwant = require('../src/api/bitswap/unwant') | ||
expect(unwant).to.be.a('function') | ||
}) | ||
}) | ||
|
||
describe('block', () => { | ||
it('.get', () => { | ||
const get = require('../src/api/block/get') | ||
expect(get).to.be.a('function') | ||
}) | ||
|
||
it('.stat', () => { | ||
const stat = require('../src/api/block/stat') | ||
expect(stat).to.be.a('function') | ||
}) | ||
|
||
it('.put', () => { | ||
const put = require('../src/api/block/put') | ||
expect(put).to.be.a('function') | ||
}) | ||
}) | ||
|
||
describe('bootstrap', () => { | ||
it('.add', () => { | ||
const add = require('../src/api/bootstrap/add') | ||
expect(add).to.be.a('function') | ||
}) | ||
|
||
it('.rm', () => { | ||
const rm = require('../src/api/bootstrap/rm') | ||
expect(rm).to.be.a('function') | ||
}) | ||
|
||
it('.list', () => { | ||
const list = require('../src/api/bootstrap/list') | ||
expect(list).to.be.a('function') | ||
}) | ||
}) | ||
|
||
describe('config', () => { | ||
it('.get', () => { | ||
const get = require('../src/api/config/get') | ||
expect(get).to.be.a('function') | ||
}) | ||
|
||
it('.set', () => { | ||
const set = require('../src/api/config/set') | ||
expect(set).to.be.a('function') | ||
}) | ||
|
||
it('.replace', () => { | ||
const replace = require('../src/api/config/replace') | ||
expect(replace).to.be.a('function') | ||
}) | ||
}) | ||
}) |