files = [\r
MOCHA,\r
MOCHA_ADAPTER,\r
- /*REQUIRE,\r
- REQUIRE_ADAPTER*/\r
- \r
- 'libs/chai.js',\r
- 'libs/jquery-1.9.1.min.js',\r
- \r
- 'tests/conf.js',\r
- 'modules/documentCanvas/tests/tests_transform.js'\r
+ REQUIRE,\r
+ REQUIRE_ADAPTER,\r
\r
+ {pattern: 'libs/*.js', included: false},\r
+ {pattern: 'fnpjs/**/*.js', included: false},\r
+ {pattern: 'modules/**/*.js', included: false},\r
+ {pattern: 'views/**/*.js', included: false},\r
+ {pattern: 'fnpjs/**/*.html', included: false},\r
+ {pattern: 'modules/**/*.html', included: false},\r
+ {pattern: 'views/**/*.html', included: false},\r
+\r
+ 'tests/main.js',\r
];\r
\r
reporters = ['progress'];\r
+++ /dev/null
-suite('Transform', function() {\r
-\r
- test('test1', function() {\r
- assert.ok(true);\r
- });\r
-\r
-});
\ No newline at end of file
--- /dev/null
+define(['libs/chai', 'modules/documentCanvas/transformations'], function(chai, transformations) {\r
+\r
+ var assert = chai.assert;\r
+\r
+ suite('Transform', function() {\r
+\r
+ test('test1', function() {\r
+ assert.ok(true);\r
+ });\r
+\r
+ });\r
+\r
+});
\ No newline at end of file
--- /dev/null
+(function() {\r
+\r
+ mocha.setup('tdd');\r
+\r
+ var tests = Object.keys(window.__karma__.files).filter(function (file) {\r
+ return /\.test\.js$/.test(file);\r
+ });\r
+\r
+ require({\r
+ baseUrl: '/base/',\r
+ deps: tests,\r
+ callback: window.__karma__.start\r
+ });\r
+\r
+})();
\ No newline at end of file