var Tuc = require('../lib/tuc');

var tuc = new Tuc();

tuc.getBalance('00000100', function( balance ){

    console.log( balance );

});


tuc.getType('00000100', function( balance ){

    console.log( balance );

});

@@ -1,12 +1,44 @@
+var assert = require('assert');%0A
 var Tuc = re
@@ -58,17 +58,16 @@
 /tuc');%0A
-%0A
 var tuc 
@@ -79,17 +79,127 @@
  Tuc();%0A
-%0A
+describe('Tuc', function() %7B%0A  describe('getBalance', function() %7B%0A%0A    it('is object', function(done) %7B%0A      
 tuc.getB
@@ -206,24 +206,16 @@
 alance('
-00000100
 ', funct
@@ -222,56 +222,736 @@
 ion(
- balance )%7B%0A%0A    console.log( balance );%0A%0A%7D);%0A%0A%0A
+response) %7B%0A        assert.strictEqual(typeof response, 'object');%0A        done();%0A      %7D);%0A    %7D);%0A%0A    it('is error', function(done) %7B%0A      tuc.getBalance('', function(response) %7B%0A        assert.strictEqual(typeof response.error, 'object');%0A        done();%0A      %7D);%0A    %7D);%0A%0A    it('not is error', function(done) %7B%0A      tuc.getBalance('00759794', function(response) %7B%0A        assert.strictEqual(typeof response.error, 'undefined');%0A        done();%0A      %7D);%0A    %7D);%0A%0A  %7D);%0A%0A  describe('getType', function() %7B%0A%0A    it('is object', function(done) %7B%0A      tuc.getType('', function(response) %7B%0A        assert.strictEqual(typeof response, 'object');%0A        done();%0A      %7D);%0A    %7D);%0A%0A    it('is error', function(done) %7B%0A      
 tuc.
@@ -963,16 +963,8 @@
 pe('
-00000100
 ', f
@@ -975,49 +975,311 @@
 ion(
- balance )%7B%0A%0A    console.log( balance );%0A
+response) %7B%0A        assert.strictEqual(typeof response.error, 'object');%0A        done();%0A      %7D);%0A    %7D);%0A%0A    it('not is error', function(done) %7B%0A      tuc.getType('00759794', function(response) %7B%0A        assert.strictEqual(typeof response.error, 'undefined');%0A        done();%0A      %7D);%0A    %7D);%0A%0A  %7D);
 %0A%7D);

add unit test