test skeleton
This commit is contained in:
parent
1a404d4d08
commit
b689fd1c51
@ -2,13 +2,30 @@
|
|||||||
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() {
|
||||||
ps.init();
|
ps.init();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
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