Skip to content

Commit 4e1720c

Browse files
add tests
Signed-off-by: Gürgün Dayıoğlu <[email protected]> Co-authored-by: Martin Slota <[email protected]>
1 parent 9dca1e6 commit 4e1720c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { expect } from "chai";
2+
3+
import ConnectionPool from "../../../lib/cluster/ConnectionPool";
4+
5+
describe("The cluster connection pool", () => {
6+
describe("when not connected", () => {
7+
it("does not throw when fetching a sample node", () => {
8+
expect(new ConnectionPool({}).getSampleInstance("all")).to.be.undefined;
9+
expect(new ConnectionPool({}).getNodes("all")).to.be.eq([]);
10+
});
11+
});
12+
});

0 commit comments

Comments
 (0)