UNPKG

521 BJavaScriptView Raw
1var chai = require('chai');
2var expect = chai.expect;
3var testFramework = require('../index');
4
5describe('settings', function() {
6 it('stores paths to tests and mocha.opts', function() {
7 testFramework.initialize({
8 'mocha_tests': ['./test_support/basic'],
9 'mocha_opts': './test_support/basic/mocha.opts'
10 });
11 expect(testFramework.settings.mochaTestFolders).to.deep.equal(['./test_support/basic']);
12 expect(testFramework.settings.mochaOpts).to.equal('./test_support/basic/mocha.opts');
13 });
14});