UNPKG

500 BJavaScriptView Raw
1require('lazy-ass');
2var check = require('check-types');
3
4describe('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});