summaryrefslogtreecommitdiff
path: root/tests/test_app.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-26 12:24:11 +0200
committerAlon Levy <alon@pobox.com>2014-10-26 12:27:50 +0200
commit07373747c7e709cadbe73dd024a11b8336034f6d (patch)
tree4a28da0f5bb938f355047713d2547022afacd1ab /tests/test_app.js
parent9e7c7ddc7de091d404e83efbab113f35ebde2b77 (diff)
tests: forgot some more files
Diffstat (limited to 'tests/test_app.js')
-rw-r--r--tests/test_app.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/test_app.js b/tests/test_app.js
new file mode 100644
index 00000000..91f6b6cd
--- /dev/null
+++ b/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 = '../scripts/';
+
+document.config = config;
+}());