Browse Source

rm express client

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

19
test/integration/clientApi.js

@ -75,15 +75,6 @@ describe('client API ', function() {
beforeEach(function() { beforeEach(function() {
clients = []; 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, { var db = levelup(memdown, {
valueEncoding: 'json' valueEncoding: 'json'
}); });
@ -95,6 +86,16 @@ describe('client API ', function() {
storage: storage 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); client.request = helpers.getRequest(app);
clients.push(client); clients.push(client);
}); });

Loading…
Cancel
Save