Browse Source

rm express client

activeAddress
Matias Alejo Garcia 10 years ago
parent
commit
83f59ddfbb
  1. 23
      test/integration/clientApi.js

23
test/integration/clientApi.js

@ -45,7 +45,7 @@ helpers.createAndJoinWallet = function(clients, m, n, cb) {
if (n == 1) return cb();
should.exist(secret);
async.each(_.range(n-1), function(i, cb) {
async.each(_.range(n - 1), function(i, cb) {
clients[i + 1].joinWallet(secret, 'copayer ' + (i + 1), function(err, result) {
should.not.exist(err);
return cb(err);
@ -75,15 +75,6 @@ describe('client API ', function() {
beforeEach(function() {
clients = [];
// Generates 5 clients
_.each(_.range(5), function(i) {
var storage = new Client.FileStorage({
filename: 'client' + i,
fs: fsmock,
});
var client = new Client({
storage: storage,
});
var db = levelup(memdown, {
valueEncoding: 'json'
});
@ -95,10 +86,20 @@ describe('client API ', function() {
storage: storage
}
});
// Generates 5 clients
_.each(_.range(5), function(i) {
var storage = new Client.FileStorage({
filename: 'client' + i,
fs: fsmock,
});
var client = new Client({
storage: storage,
});
client.request = helpers.getRequest(app);
clients.push(client);
});
content={};
content = {};
});
describe.only('#getBalance', function() {

Loading…
Cancel
Save