87eb6b28361693df1ec2179723b8c2e15ea9c83c
[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     require({
10       baseUrl: '/base/src/editor',
11       deps: tests,
12       callback: window.__karma__.start,
13
14         paths: {
15             'fnpjs': '../fnpjs',
16             'libs': '../../libs'
17         },
18
19         map: {
20             '*':
21                 {
22                     'libs/jquery': '../../libs/jquery-1.9.1.min',
23                     'libs/underscore': '../../libs/underscore-min',
24                     'libs/bootstrap': '../../libs/bootstrap/js/bootstrap.min',
25                     'libs/backbone': '../../libs/backbone-min',
26                     'libs/sinon': '../../libs/sinon-1.7.3'
27                 }
28         },
29
30         shim: {
31             '../../libs/jquery-1.9.1.min': {
32                 exports: '$',
33             },
34             '../../libs/underscore-min': {
35                 exports: '_'
36             },
37             '../../libs/bootstrap/js/bootstrap.min': {
38                 deps: ['libs/jquery']
39             },
40             '../../libs/backbone-min': {
41                 exports: 'Backbone',
42                 deps: ['libs/jquery', 'libs/underscore']
43             },
44             '../../libs/sinon-1.7.3': {
45                 exports: 'sinon'
46             }
47         }
48     });
49
50 })();