X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0f406b246f9261651b5982be71a49189349c8e3e..9fc9629a92ebc396c5f3f3cbe3dc8a7acc53f9c3:/tests/main.js?ds=sidebyside diff --git a/tests/main.js b/tests/main.js index 9614d72..cc20549 100644 --- a/tests/main.js +++ b/tests/main.js @@ -1,30 +1,38 @@ -(function() { - - mocha.setup('tdd'); - - var tests = Object.keys(window.__karma__.files).filter(function (file) { - return /\.test\.js$/.test(file); - }); - - require({ - baseUrl: '/base/', - deps: tests, - callback: window.__karma__.start, - shim: { - 'libs/jquery-1.9.1.min': { - exports: '$', - }, - 'libs/underscore-min': { - exports: '_' - }, - 'libs/bootstrap/js/bootstrap.min': { - deps: ['libs/jquery-1.9.1.min'] - }, - 'libs/backbone-min': { - exports: 'Backbone', - deps: ['libs/jquery-1.9.1.min', 'libs/underscore-min'] - } - } - }); - +(function() { + + mocha.setup('bdd'); + + var tests = Object.keys(window.__karma__.files).filter(function (file) { + return /\.test3\.js$/.test(file); + }); + + require({ + baseUrl: '/base/', + deps: tests, + callback: window.__karma__.start, + shim: { + 'libs/jquery-1.9.1.min': { + exports: '$', + }, + 'libs/underscore-min': { + exports: '_' + }, + 'libs/bootstrap/js/bootstrap.min': { + deps: ['libs/jquery-1.9.1.min'] + }, + 'libs/backbone-min': { + exports: 'Backbone', + deps: ['libs/jquery-1.9.1.min', 'libs/underscore-min'] + }, + 'libs/sinon-1.7.3': { + exports: 'sinon' + } + }, + map: { + '*': { + 'libs/sinon': 'libs/sinon-1.7.3' + } + } + }); + })(); \ No newline at end of file