X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a398f2a96740ebe6dd60559d90e74c648e7009af..412e60ded1457ec0f408e2234c9dd60122929bac:/tests/main.js diff --git a/tests/main.js b/tests/main.js index 8e17cdc..16154b7 100644 --- a/tests/main.js +++ b/tests/main.js @@ -1,6 +1,6 @@ (function() { - mocha.setup('tdd'); + mocha.setup('bdd'); var tests = Object.keys(window.__karma__.files).filter(function (file) { return /\.test\.js$/.test(file); @@ -14,15 +14,23 @@ 'libs/jquery-1.9.1.min': { exports: '$', }, - 'libs/underscore-min': { + 'libs/underscore': { exports: '_' }, 'libs/bootstrap/js/bootstrap.min': { deps: ['libs/jquery-1.9.1.min'] }, - 'libs/backbone-min': { + 'libs/backbone': { exports: 'Backbone', - deps: ['libs/jquery-1.9.1.min', 'libs/underscore-min'] + deps: ['libs/jquery-1.9.1.min', 'libs/underscore'] + }, + 'libs/sinon-1.7.3': { + exports: 'sinon' + } + }, + map: { + '*': { + 'libs/sinon': 'libs/sinon-1.7.3' } } });