Skip to content

Commit

Permalink
Added some more core tests to stress unused code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 24, 2015
1 parent 2f203b7 commit b33bc7a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/Core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/Core.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions test/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ describe("Core",() => {
});
});

it("should throw an error if no URI or configuration object was provided",() => {
chai.expect(() => new Iridium.Core('')).to.throw("Expected either a URI or config object to be supplied when initializing Iridium");
});

it("should correctly convert the configuration object into a URI string",() => {
var core = new Iridium.Core({
host: 'localhost',
Expand Down Expand Up @@ -71,6 +75,7 @@ describe("Core",() => {

it("should have an Express provider",() => {
chai.expect(core.express).to.exist.and.be.a('function');
chai.expect(core.express()).to.exist.and.be.a('function');
});
});

Expand Down

0 comments on commit b33bc7a

Please sign in to comment.