blob: 6696c1fc26728502fc00ab8c95bdca9e50cc466f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// mocks just to all run_tests to succeed
if (typeof define == 'undefined') {
function define(mod, cb) {
}
}
if (typeof document == 'undefined') {
var document = {};
}
(function() {
var config = {
//urlArgs: "bust=" + (new Date()).getTime(), // NOTE: useful for debugging
paths: {
jquery: 'external/jquery',
'jquery-ui': 'external/jquery-ui',
caret: 'external/caret',
'd3': 'external/d3/d3',
autocomplete: 'external/autocomplete',
FileSaver: 'external/FileSaver',
}
}
define('test', function() {
console.log('hello from test factory');
return {f:function(){console.log(42);}};
});
console.log('test_app: running under node');
config.baseUrl = '../src/';
document.config = config;
}());
|