summaryrefslogtreecommitdiff
path: root/src/client-tests/test_app.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-16 17:37:42 +0200
committerAlon Levy <alon@pobox.com>2014-12-16 17:37:42 +0200
commitade19de410e0a789a921ec1666b278b2a64176d6 (patch)
treec4c54b106de93609ca7bb70a20fd4be696715dbe /src/client-tests/test_app.js
parentc7d026b1d504323a8c61d51b726e5e8d2337fc4b (diff)
moving files around after repository merger
Diffstat (limited to 'src/client-tests/test_app.js')
-rw-r--r--src/client-tests/test_app.js32
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;
+}());