1 Commits

Author SHA1 Message Date
0b7b64231d Replace films page H2 by Studio Ghibli logo 2020-12-18 02:18:01 +01:00
3 changed files with 6 additions and 4 deletions

BIN
assets/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -1,8 +1,10 @@
<template>
<section class="py-4">
<h2 class="text-3xl font-normal mx-auto block text-center mb-4">
Ghibli films
</h2>
<img
class="w-full max-w-md mx-auto mb-8"
src="~/assets/images/logo.png"
alt="Studio Ghibli"
/>
<Grid :dataSource="films" />
</section>
</template>

View File

@@ -10,7 +10,7 @@ jest.mock("axios", () => ({
describe("Films page", () => {
it("should render Films page instance", () => {
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 () => {