Skip to content

Commit 2ca05da

Browse files
committed
Moved tests into Browserify bundle (temporarily)
1 parent 15bc242 commit 2ca05da

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

Jakefile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@
8888
console.log("Bundling client files with Browserify...");
8989
var b = browserify([
9090
"./src/client/client.js",
91-
"./src/client/html_element.js"
91+
"./src/client/html_element.js",
92+
"./src/client/_svg_canvas_test.js",
93+
"./src/client/_client_test.js",
94+
"./src/client/_html_element_test.js"
9295
// "./src/client/vendor/jquery-1.8.2.js",
9396
// "./src/client/vendor/raphael-2.1.0.js"
9497
]);

build/karma.conf.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ files = [
1313
"node_modules/expect.js/expect.js",
1414
"generated/build/client/vendor/jquery-1.8.2.js",
1515
"generated/build/client/vendor/raphael-2.1.0.js",
16-
"generated/build/client/bundle.js",
17-
"src/client/_*_test.js"
16+
"generated/build/client/bundle.js"
1817
];
1918

2019

todo.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ Engineering Tasks:
2222
- Use Modernizr to eliminate duplicate browserSupportsTouchEvents() function (in _client_test.js & _dom_element_test.js)
2323

2424
To Do on current task:
25-
- Incrementally migrate our code from wwp global to browserify's require() calls
2625
- Get tests working with require()
2726
- Get index.html working with require()
2827
- Figure out how to bundle vendor files
2928
- What about deployment? (Punt?)
3029
- Duplication between weewikipaint.js CONTENT_DIR and our Jakefile
3130
- Do we want to copy src/server/ files to build directory?
3231
- Fix Karma error messages using source maps
32+
- Unbundle tests from production code
33+
- Deal with 'can't find describe()' error in smoke test
3334

3435

3536
Future ideas:

0 commit comments

Comments
 (0)