test skeleton

This commit is contained in:
Manuel Araoz 2014-01-16 13:01:10 -03:00
parent 1a404d4d08
commit b689fd1c51
1 changed files with 19 additions and 2 deletions

View File

@ -2,13 +2,30 @@
var assert = require('assert');
var PeerSync = require('../../lib/PeerSync.js').class();
describe('Unit testing PeerSync', function() {
var ps = new PeerSync();
var ps;
beforeEach(function() {
ps = new PeerSync();
});
describe('#init()', function() {
it('should return with no errors', function() {
assert.doesNotThrow(function(){
assert.doesNotThrow(function() {
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');
});
});