testing wip - exposing chai.assert
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 18 Jun 2013 13:18:27 +0000 (15:18 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 18 Jun 2013 13:18:27 +0000 (15:18 +0200)
karma.conf.js
modules/documentCanvas/tests/tests_transform.js
tests/conf.js [new file with mode: 0644]
tests/mocha.conf.js [deleted file]

index ce49467..41ee13e 100644 (file)
@@ -5,9 +5,11 @@ files = [
   MOCHA_ADAPTER,\r
   /*REQUIRE,\r
   REQUIRE_ADAPTER*/\r
-  'tests/mocha.conf.js',\r
+  \r
   'libs/chai.js',\r
   'libsjquery-1.9.1.min.js',\r
+  \r
+  'tests/conf.js',\r
   'modules/documentCanvas/tests/tests_transform.js'\r
   \r
 ];\r
index 6d83e98..b693e12 100644 (file)
@@ -1,7 +1,7 @@
 suite('Transform', function() {\r
 \r
     test('test1', function() {\r
-        chai.assert.ok(true);\r
+        assert.ok(true);\r
     });\r
 \r
 });
\ No newline at end of file
diff --git a/tests/conf.js b/tests/conf.js
new file mode 100644 (file)
index 0000000..431acb7
--- /dev/null
@@ -0,0 +1,3 @@
+mocha.setup('tdd');\r
+\r
+var assert = chai.assert;
\ No newline at end of file
diff --git a/tests/mocha.conf.js b/tests/mocha.conf.js
deleted file mode 100644 (file)
index 46e0b34..0000000
+++ /dev/null
@@ -1 +0,0 @@
-mocha.setup('tdd');
\ No newline at end of file