Refactor Footer module + Add basic tesst file
This commit is contained in:
9
components/Footer/Footer.spec.js
Normal file
9
components/Footer/Footer.spec.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import Footer from "./";
|
||||
|
||||
describe("Footer", () => {
|
||||
it("should render Footer instance", () => {
|
||||
const wrapper = mount(Footer);
|
||||
expect(wrapper.exists()).toBe(true);
|
||||
});
|
||||
});
|
||||
18
components/Footer/index.vue
Normal file
18
components/Footer/index.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<footer
|
||||
class="bg-gray-900 text-gray-300 flex items-center justify-center h-16"
|
||||
>
|
||||
<p>
|
||||
©2020 Made with <span style="color: red;">♥</span> by
|
||||
<a href="https://wazo-lab.io" target="_blank">Wazo Lab</a>
|
||||
</p>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Footer"
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
Reference in New Issue
Block a user