summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/setup.js11
-rw-r--r--tests/unit/example.spec.js12
2 files changed, 11 insertions, 12 deletions
diff --git a/tests/setup.js b/tests/setup.js
new file mode 100644
index 00000000..e3c220a2
--- /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');
diff --git a/tests/unit/example.spec.js b/tests/unit/example.spec.js
deleted file mode 100644
index cb7abba3..00000000
--- a/tests/unit/example.spec.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import { shallowMount } from '@vue/test-utils';
-import HelloWorld from '@/components/HelloWorld.vue';
-
-describe('HelloWorld.vue', () => {
- it('renders props.msg when passed', () => {
- const msg = 'new message';
- const wrapper = shallowMount(HelloWorld, {
- propsData: { msg }
- });
- expect(wrapper.text()).toMatch(msg);
- });
-});