diff --git a/test/api.js b/test/api.js index e31773c..c7f992d 100644 --- a/test/api.js +++ b/test/api.js @@ -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);