test skeleton
This commit is contained in:
parent
1a404d4d08
commit
b689fd1c51
@ -2,7 +2,10 @@
|
|||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
var PeerSync = require('../../lib/PeerSync.js').class();
|
var PeerSync = require('../../lib/PeerSync.js').class();
|
||||||
describe('Unit testing PeerSync', function() {
|
describe('Unit testing PeerSync', function() {
|
||||||
var ps = new PeerSync();
|
var ps;
|
||||||
|
beforeEach(function() {
|
||||||
|
ps = new PeerSync();
|
||||||
|
});
|
||||||
describe('#init()', function() {
|
describe('#init()', function() {
|
||||||
it('should return with no errors', function() {
|
it('should return with no errors', function() {
|
||||||
assert.doesNotThrow(function() {
|
assert.doesNotThrow(function() {
|
||||||
@ -10,5 +13,19 @@ describe('Unit testing PeerSync', function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
describe('#handle_inv()', function() {
|
||||||
|
it('should return with no errors');
|
||||||
|
it('should call sendGetData');
|
||||||
|
});
|
||||||
|
describe('#handle_tx()', function() {
|
||||||
|
it('should call storeTxs');
|
||||||
|
});
|
||||||
|
describe('#handle_block()', function() {
|
||||||
|
it('should call storeBlock');
|
||||||
|
it('should call storeTxs for each transaction');
|
||||||
|
});
|
||||||
|
describe('#run()', function() {
|
||||||
|
it('should setup peerman');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user