small fix for lists
[fnpeditor.git] / tests / main.js
1 (function() {
2
3     mocha.setup('bdd');
4
5     var tests = Object.keys(window.__karma__.files).filter(function (file) {
6       return (/\.test\.js$/).test(file);
7     });
8
9     /* globals window */
10     // This installs noop i18n functions so that tests can work with i18nized code
11     window.gettext = window.interpolate = function() {
12         return Array.prototype.slice.call(arguments, 0);
13     };
14
15     require({
16       baseUrl: '/base/src/editor',
17       deps: tests,
18       callback: window.__karma__.start,
19
20         paths: {
21             'fnpjs': '../fnpjs',
22             'libs': '../../libs',
23             'smartxml': '../smartxml',
24             'wlxml': '../wlxml'
25         },
26
27         map: {
28             '*':
29                 {
30                     'libs/jquery': '../../libs/jquery-1.9.1.min',
31                     'libs/underscore': '../../libs/underscore-min',
32                     'libs/bootstrap': '../../libs/bootstrap/js/bootstrap.min',
33                     'libs/backbone': '../../libs/backbone-min',
34                     'libs/sinon': '../../libs/sinon-1.7.3'
35                 }
36         },
37
38         shim: {
39             '../../libs/jquery-1.9.1.min': {
40                 exports: '$',
41             },
42             '../../libs/underscore-min': {
43                 exports: '_'
44             },
45             '../../libs/bootstrap/js/bootstrap.min': {
46                 deps: ['libs/jquery']
47             },
48             '../../libs/backbone-min': {
49                 exports: 'Backbone',
50                 deps: ['libs/jquery', 'libs/underscore']
51             },
52             '../../libs/sinon-1.7.3': {
53                 exports: 'sinon'
54             }
55         }
56     });
57
58 })();