Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- require.config({
- paths: {
- "mocha": "bower_components/mocha/mocha",
- "chai": "bower_components/chai/chai",
- "mochaChaiInit": "scripts/mochaChaiInit",
- "methods": "scripts/methods"
- }
- });
- require([ 'methods', 'mochaChaiInit', 'mocha' ], function (methods) {
- describe('#sum', function () {
- it('test method description', function () {
- var actual = methods.sum(1, 1);
- var expected = 2;
- expect(actual).to.equal(expected);
- });
- });
- mocha.run();
- });
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement