Skip to content

Commit

Permalink
test: Added an expectation to the client-side test, and the necessary…
Browse files Browse the repository at this point in the history
… wiring
  • Loading branch information
yamikuronue committed Dec 16, 2016
1 parent bb1e132 commit 6bc5986
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function(config) {

// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha'],
frameworks: ['mocha', 'chai'],


// list of files / patterns to load in the browser
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@
"eslint": "^3.12.1",
"eslint-plugin-babel": "^4.0.0",
"karma": "^1.3.0",
"karma-chai": "^0.1.0",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.2",
"mocha": "^3.2.0",
"sinon": "^1.17.6"
"sinon": "^1.17.6",
"sinon-chai": "^2.8.0"
},
"main": "./src/index.js",
"browser": "./src/browser.js",
Expand Down
2 changes: 1 addition & 1 deletion test/client/debug_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe('debug', function () {
describe('sanity check', function () {
it('passes', function () {
const log = debug('test');
log('hello world');
expect(log('hello world')).to.not.throw;
});
});
});

0 comments on commit 6bc5986

Please sign in to comment.