Skip to content

Commit

Permalink
Updated and added some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 27, 2015
1 parent 67d2ab7 commit 190e5c2
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 7 deletions.
11 changes: 8 additions & 3 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.

12 changes: 9 additions & 3 deletions test/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,15 @@ describe("Core",() => {

it("should have a default no-op cache provider",() => {
chai.expect(core.cache).to.exist;
return core.cache.set("test", true).then(() => {
chai.expect(core.cache.get("test")).to.eventually.not.exist;
});
core.cache.set("test", true);
chai.expect(core.cache.get("test")).to.eventually.not.exist;
});
});

describe("settings",() => {
it("should be exposed via the settings property",() => {
var core = new Iridium.Core({ database: 'test' });
chai.expect(core.settings).to.exist.and.eql({ database: 'test' });
});
});

Expand Down
29 changes: 29 additions & 0 deletions test/Instance.js

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

0 comments on commit 190e5c2

Please sign in to comment.