/ Cleanup of error layout, readme
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -21,8 +21,8 @@ export default {
|
||||
layout: 'error',
|
||||
props: {
|
||||
error: {
|
||||
type: String,
|
||||
default: ''
|
||||
type: Object,
|
||||
default: () => { return {} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user