diff --git a/client/dockerfile b/client/dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/client/src/App.vue b/client/src/App.vue index 505315b..da96f5d 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -2,9 +2,7 @@
@@ -30,6 +28,6 @@ } #nav a.router-link-exact-active { - color: #42b983; + color: #5cb38b; } diff --git a/client/src/components/Books.vue b/client/src/components/Books.vue deleted file mode 100644 index c291b47..0000000 --- a/client/src/components/Books.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - diff --git a/client/src/components/Calc.vue b/client/src/components/Calc.vue new file mode 100644 index 0000000..ac5e449 --- /dev/null +++ b/client/src/components/Calc.vue @@ -0,0 +1,158 @@ + + + diff --git a/client/src/components/HelloWorld.vue b/client/src/components/HelloWorld.vue deleted file mode 100644 index aa3ab72..0000000 --- a/client/src/components/HelloWorld.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - diff --git a/client/src/components/Ping.vue b/client/src/components/Ping.vue deleted file mode 100644 index 5f073b7..0000000 --- a/client/src/components/Ping.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/client/src/router/index.js b/client/src/router/index.js index 184bf00..e3a59cb 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -1,7 +1,7 @@ import Vue from 'vue'; import VueRouter from 'vue-router'; -import Ping from '../components/Ping.vue'; -import Books from '../components/Books.vue'; +// eslint-disable-next-line import/no-unresolved +import Calc from '../components/Calc.vue'; Vue.use(VueRouter); @@ -11,13 +11,8 @@ export default new VueRouter({ routes: [ { path: '/', - name: 'Books', - component: Books, - }, - { - path: '/ping', - name: 'Ping', - component: Ping, + name: 'Calc', + component: Calc, }, ], }); diff --git a/client/tests/unit/calc.spec.js b/client/tests/unit/calc.spec.js new file mode 100644 index 0000000..f814de8 --- /dev/null +++ b/client/tests/unit/calc.spec.js @@ -0,0 +1,24 @@ +import { shallowMount } from '@vue/test-utils'; +import Calc from '@/components/Calc.vue'; + +let url = ''; +let data = ''; + +const mockHttp = { + get: (_url, _data) => { + return new Promise((resolve) => { + url = _url; + data = _data; + resolve(); + }); + } +}; + +describe('Books', () => { + const wrapper = shallowMount(Calc); + it('Calc is a component', () => { + // expect(wrapper.isVueInstance()).toBeTruthy() + wrapper.setData({ number1: 1}); + + }); +}); diff --git a/client/tests/unit/helloworld.spec.js b/client/tests/unit/helloworld.spec.js deleted file mode 100644 index 6fa693d..0000000 --- a/client/tests/unit/helloworld.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); - }); -});