listTransactions tests

This commit is contained in:
Bill Casarin 2011-05-17 22:24:14 -04:00
parent 832688ca5f
commit bf8527bf6c

View File

@ -4,7 +4,7 @@ require.paths.unshift(path.join(__dirname, '..'));
// test variables
var test = {
account: "test"
account: "test"
}
// end test variables
@ -41,7 +41,14 @@ vows.describe('api').addBatch({
'should be the same as the original': function(account) {
assert.equal(account, test.account);
}
}
},
},
'listTransactions': {
topic: function(client){
client.listTransactions(test.account, 15, this.callback);
},
'should not be empty': function(transactions){ assert.ok(transactions); },
'is an array': function(txs) { assert.isTrue(txs instanceof Array); }
},
'account addresses': {
topic: function(client){
@ -81,6 +88,6 @@ vows.describe('api').addBatch({
},
},
}).run();
}).export(module);