Skip to content

Commit

Permalink
Set up testling properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon de Rijke committed May 21, 2014
1 parent 1ed4d75 commit d14c625
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require test/test_helpers.js
4 changes: 0 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
var expect = require('chai').expect;

require('../');

// Tests taken from the es6-shim test cases
// Source: https://github.com/paulmillr/es6-shim/blob/master/test/number.js
describe('Number', function() {
Expand Down
11 changes: 11 additions & 0 deletions test/test_helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
expect = (function() {
var chai = require('chai');
chai.config.includeStack = true;
return chai.expect;
})();
assert = (function() {
var chai = require('chai');
chai.config.includeStack = true;
return chai.assert;
})();
require('../');

0 comments on commit d14c625

Please sign in to comment.