fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge in first approach to edumed exercises
[fnpeditor.git]
/
tests
/
main.js
diff --git
a/tests/main.js
b/tests/main.js
index
87eb6b2
..
e2028fa
100644
(file)
--- a/
tests/main.js
+++ b/
tests/main.js
@@
-3,9
+3,15
@@
mocha.setup('bdd');
var tests = Object.keys(window.__karma__.files).filter(function (file) {
mocha.setup('bdd');
var tests = Object.keys(window.__karma__.files).filter(function (file) {
- return
/\.test\.js$/
.test(file);
+ return
(/\.test\.js$/)
.test(file);
});
});
+ /* globals window */
+ // This installs noop i18n functions so that tests can work with i18nized code
+ window.gettext = window.interpolate = function() {
+ return Array.prototype.slice.call(arguments, 0);
+ };
+
require({
baseUrl: '/base/src/editor',
deps: tests,
require({
baseUrl: '/base/src/editor',
deps: tests,
@@
-13,7
+19,9
@@
paths: {
'fnpjs': '../fnpjs',
paths: {
'fnpjs': '../fnpjs',
- 'libs': '../../libs'
+ 'libs': '../../libs',
+ 'smartxml': '../smartxml',
+ 'wlxml': '../wlxml'
},
map: {
},
map: {