diff --git a/README.md b/README.md index fcb7273..91de248 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # full-skies Ce projet a pour but d'exploiter [l'API Le Système Solaire](https://api.le-systeme-solaire.net/) et de proposer une interface simple pour selectionner des favoris. +Il a été conçu lors d'un module d'apprentissage de Nuxt/Vue à MyDigitalSchool. - [Dependencies](#dependencies) - [How to install](#how-to-install) ## Dependencies diff --git a/layouts/error.vue b/layouts/error.vue index 0984de6..673f5ea 100644 --- a/layouts/error.vue +++ b/layouts/error.vue @@ -21,8 +21,8 @@ export default { layout: 'error', props: { error: { - type: String, - default: '' + type: Object, + default: () => { return {} } } } } diff --git a/pages/astres/_slug.vue b/pages/astres/_slug.vue index ae1fe99..61f5b62 100644 --- a/pages/astres/_slug.vue +++ b/pages/astres/_slug.vue @@ -61,17 +61,6 @@ export default { } catch (err) { error(err) } - }, - - mounted () { - fetchCelestial(this.$route.params.slug) - .then((res) => { - this.celestial = res - return this.celestial - }) - .catch(() => { - console.log('test') - }) } } diff --git a/test/Logo.spec.js b/test/Logo.spec.js deleted file mode 100644 index c5fbeeb..0000000 --- a/test/Logo.spec.js +++ /dev/null @@ -1,9 +0,0 @@ -import { mount } from '@vue/test-utils' -import Logo from '@/components/Logo.vue' - -describe('Logo', () => { - test('is a Vue instance', () => { - const wrapper = mount(Logo) - expect(wrapper.vm).toBeTruthy() - }) -})