Skip to content

Commit

Permalink
test: Test to make sure that low level connection info is passed alon…
Browse files Browse the repository at this point in the history
…g correctly
  • Loading branch information
notheotherben committed Oct 8, 2015
1 parent 14faf60 commit c809366
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,27 @@ describe("Core",() => {

chai.expect(core.url).to.equal("mongodb://localhost/test");
});

it("should support passing connection level configuration information", () => {
let core = new Iridium.Core({
database: 'test',
options: {
server: {
socketOptions: {
connectTimeoutMS: 1000
}
}
}
});

chai.expect(core.settings.options).to.eql({
server: {
socketOptions: {
connectTimeoutMS: 1000
}
}
});
});
});

describe("plugins",() => {
Expand Down

0 comments on commit c809366

Please sign in to comment.