1 | var chai = require('chai');
|
2 | var expect = chai.expect;
|
3 | var testFramework = require('../index');
|
4 |
|
5 | describe('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 | });
|