Compare commits
1 Commits
footer-com
...
films-page
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b7b64231d |
BIN
assets/images/logo.png
Normal file
BIN
assets/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
@@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="py-4">
|
<section class="py-4">
|
||||||
<h2 class="text-3xl font-normal mx-auto block text-center mb-4">
|
<img
|
||||||
Ghibli films
|
class="w-full max-w-md mx-auto mb-8"
|
||||||
</h2>
|
src="~/assets/images/logo.png"
|
||||||
|
alt="Studio Ghibli"
|
||||||
|
/>
|
||||||
<Grid :dataSource="films" />
|
<Grid :dataSource="films" />
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jest.mock("axios", () => ({
|
|||||||
describe("Films page", () => {
|
describe("Films page", () => {
|
||||||
it("should render Films page instance", () => {
|
it("should render Films page instance", () => {
|
||||||
const wrapper = mount(FilmsView);
|
const wrapper = mount(FilmsView);
|
||||||
expect(wrapper.find("h2").text()).toBe("Ghibli films");
|
expect(wrapper.find("img").exists()).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should get films from Ghibli API", async () => {
|
it("should get films from Ghibli API", async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user