'use strict';
var assert = require('assert');
var PeerSync = require('../../lib/PeerSync.js').class();
describe('Unit testing PeerSync', function() {
  var ps = new PeerSync();
  describe('#init()', function() {
    it('should return with no errors', function() {
      assert.doesNotThrow(function(){
        ps.init();
      });
    });
  });
});


@@ -149,16 +149,50 @@
 %7B%0A  var 
+ps;%0A  beforeEach(function() %7B%0A    
 ps = new
@@ -204,16 +204,22 @@
 Sync();%0A
+  %7D);%0A
   descri
@@ -333,16 +333,17 @@
 nction()
+ 
 %7B%0A      
@@ -379,13 +379,421 @@
 ;%0A  %7D);%0A
+  describe('#handle_inv()', function() %7B%0A    it('should return with no errors');%0A    it('should call sendGetData');%0A  %7D);%0A  describe('#handle_tx()', function() %7B%0A    it('should call storeTxs');%0A  %7D);%0A  describe('#handle_block()', function() %7B%0A    it('should call storeBlock');%0A    it('should call storeTxs for each transaction');%0A  %7D);%0A  describe('#run()', function() %7B%0A    it('should setup peerman');%0A  %7D);%0A
 %7D);%0A%0A

test skeleton