diff options
Diffstat (limited to 'src/client-tests/test_app.js')
| -rw-r--r-- | src/client-tests/test_app.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/client-tests/test_app.js b/src/client-tests/test_app.js new file mode 100644 index 00000000..6696c1fc --- /dev/null +++ b/src/client-tests/test_app.js @@ -0,0 +1,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; +}()); |
