smartxml: refactor inserting methods
[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             'smartxml': '../smartxml'
18         },
19
20         map: {
21             '*':
22                 {
23                     'libs/jquery': '../../libs/jquery-1.9.1.min',
24                     'libs/underscore': '../../libs/underscore-min',
25                     'libs/bootstrap': '../../libs/bootstrap/js/bootstrap.min',
26                     'libs/backbone': '../../libs/backbone-min',
27                     'libs/sinon': '../../libs/sinon-1.7.3'
28                 }
29         },
30
31         shim: {
32             '../../libs/jquery-1.9.1.min': {
33                 exports: '$',
34             },
35             '../../libs/underscore-min': {
36                 exports: '_'
37             },
38             '../../libs/bootstrap/js/bootstrap.min': {
39                 deps: ['libs/jquery']
40             },
41             '../../libs/backbone-min': {
42                 exports: 'Backbone',
43                 deps: ['libs/jquery', 'libs/underscore']
44             },
45             '../../libs/sinon-1.7.3': {
46                 exports: 'sinon'
47             }
48         }
49     });
50
51 })();