1 | require('lazy-ass');
|
2 | var check = require('check-types');
|
3 |
|
4 | describe('detect framework', function () {
|
5 | var join = require('path').join;
|
6 | var xplain = require(join(__dirname, '../src/xplain.js'));
|
7 | lazyAss(check.fn(xplain.detectFramework));
|
8 |
|
9 | it('detects jasmine spec by filename', function () {
|
10 | lazyAss(xplain.detectFramework(['something-spec.js']) === 'jasmine');
|
11 | });
|
12 |
|
13 | it('otherwise it is qunit', function () {
|
14 | lazyAss(xplain.detectFramework(['something.js']) === 'qunit');
|
15 | });
|
16 | });
|