Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Partial config file
- var require = {
- // Base URL relative to the test runner
- // Paths are relative to this
- baseUrl: '../../js/',
- paths: {
- // Testing libs
- 'chai' : '../test/libs/chai',
- 'sinon-chai' : '../test/libs/sinon-chai',
- 'chai-jquery' : '../test/libs/chai-jquery',
- 'common' : '../test/libs/common',
- 'fixtures' : '../test/admin/fixtures/fixtures',
- 'jquery' : 'libs/jquery/jquery.min',
- 'underscore' : 'libs/underscore/underscore',
- 'backbone' : 'vendor/backbone',
- 'visualsearch' : 'libs/backbone/visualsearch',
- 'highcharts' : 'libs/highcharts/highcharts',
- 'charts' : 'vendor/highcharts',
- 'templates' : 'templates/templates'
- },
- use: {
- backbone: {
- deps: ['use!underscore', 'jquery'],
- attach: 'Backbone'
- },
- 'libs/backbone/backbone': {
- deps: ['use!underscore', 'jquery'],
- attach: 'Backbone'
- },
- 'libs/leaflet/leaflet-src': {
- attach: 'L'
- },
- underscore: {
- attach: '_'
- },
- mocha: {
- attach: 'mocha'
- }
- },
- priority: [
- 'jquery',
- 'underscore',
- 'common'
- ]
- // urlArgs: /debug\=1/.test(window.location.search) ? '' : 'bust=' + (new Date()).getTime(), // debug
- };
- mocha.setup({
- ui: 'bdd',
- ignoreLeaks: true
- });
- // Protect from barfs
- console = window.console || function() {};
- // Don't track
- window.notrack = true;
- // Console.log hooks for phantom/grunt to pick up
- var runMocha = function() {
- mocha.run();
- };
Add Comment
Please, Sign In to add comment