Refactor films/_id to use vuex

This commit is contained in:
2020-12-18 06:12:39 +01:00
parent 18be371f39
commit e1619de1cd
4 changed files with 42 additions and 41 deletions

View File

@@ -23,7 +23,7 @@ describe("Films page", () => {
expect(wrapper.find("img").exists()).toBe(true);
});
it("should get films from Ghibli API", async () => {
it("should dispatch getFilms action", async () => {
let wrapper = shallowMount(Films, {
store,
localVue