We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3d526 commit a39c141Copy full SHA for a39c141
test/client/snapshot-request.js
@@ -1,7 +1,5 @@
1
var Backend = require('../../lib/backend');
2
var expect = require('expect.js');
3
-var StreamSocket = require('../../lib/stream-socket');
4
-var Connection = require('../../lib/client/connection');
5
6
describe('SnapshotRequest', function () {
7
var backend;
@@ -210,8 +208,7 @@ describe('SnapshotRequest', function () {
210
208
});
211
209
212
it('can drop its connection and reconnect, and the callback is just called once', function (done) {
213
- var socket = new StreamSocket();
214
- var connection = backend.connect(new Connection(socket));
+ var connection = backend.connect();
215
216
connection.fetchSnapshot('books', 'don-quixote', function (error) {
217
if (error) return done(error);
0 commit comments