Add mocha and chai test framework
- Mocha/Chai/Sinon test frameowrk because it has 100% feature parity with vue-loader.
- Code for making 'expect' function accessible globally.
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: Idf809cb08d8c1ef177ff92f0ee1be04ac74059a3
diff --git a/tests/setup.js b/tests/setup.js
new file mode 100644
index 0000000..e3c220a
--- /dev/null
+++ b/tests/setup.js
@@ -0,0 +1,11 @@
+var chai = require('chai');
+var sinonChai = require('sinon-chai');
+
+chai.use(sinonChai);
+
+require('jsdom-global')('', {
+ url: 'http://localhost'
+});
+
+global.expect = require('chai').expect;
+global.sinon = require('sinon');