Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 17th, 2018 86 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. // Partial config file
  2. var require = {
  3.     // Base URL relative to the test runner
  4.     // Paths are relative to this
  5.     baseUrl: '../../js/',
  6.     paths: {
  7.         // Testing libs
  8.         'chai'          : '../test/libs/chai',
  9.         'sinon-chai'    : '../test/libs/sinon-chai',
  10.         'chai-jquery'   : '../test/libs/chai-jquery',
  11.         'common'        : '../test/libs/common',
  12.         'fixtures'      : '../test/admin/fixtures/fixtures',
  13.         'jquery'        : 'libs/jquery/jquery.min',
  14.         'underscore'    : 'libs/underscore/underscore',
  15.         'backbone'      : 'vendor/backbone',
  16.         'visualsearch'  : 'libs/backbone/visualsearch',
  17.         'highcharts'    : 'libs/highcharts/highcharts',
  18.         'charts'        : 'vendor/highcharts',
  19.         'templates'     : 'templates/templates'
  20.     },
  21.     use: {
  22.         backbone: {
  23.             deps: ['use!underscore', 'jquery'],
  24.             attach: 'Backbone'
  25.         },
  26.         'libs/backbone/backbone': {
  27.             deps: ['use!underscore', 'jquery'],
  28.             attach: 'Backbone'
  29.         },
  30.         'libs/leaflet/leaflet-src': {
  31.             attach: 'L'
  32.         },
  33.         underscore: {
  34.             attach: '_'
  35.         },
  36.         mocha: {
  37.             attach: 'mocha'
  38.         }
  39.     },
  40.     priority: [
  41.         'jquery',
  42.         'underscore',
  43.         'common'
  44.     ]
  45.     // urlArgs: /debug\=1/.test(window.location.search) ? '' : 'bust=' +  (new Date()).getTime(), // debug
  46. };
  47.  
  48. mocha.setup({
  49.     ui: 'bdd',
  50.     ignoreLeaks: true
  51. });
  52.  
  53. // Protect from barfs
  54. console = window.console || function() {};
  55.  
  56. // Don't track
  57. window.notrack = true;
  58.  
  59. // Console.log hooks for phantom/grunt to pick up
  60. var runMocha = function() {
  61.     mocha.run();
  62. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top