Adapt tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { mount, shallowMount, createLocalVue } from "@vue/test-utils";
|
||||
import { shallowMount, createLocalVue } from "@vue/test-utils";
|
||||
import Vuex from "vuex";
|
||||
import Films from "./";
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ describe("Vuex actions.", () => {
|
||||
actions.$axios = axios;
|
||||
await actions.getList({ commit });
|
||||
|
||||
expect(url).toBe("/api/films");
|
||||
expect(url).toBe(
|
||||
"/api/films?fields=id,title,release_date,director,description,rt_score"
|
||||
);
|
||||
expect(commit).toHaveBeenCalledWith("setList", mockFilms);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user