mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix order of test assertions, remove unused properties
This commit is contained in:
@@ -31,9 +31,7 @@ describe("FormTool", () => {
|
||||
};
|
||||
},
|
||||
getManager: () => {
|
||||
return {
|
||||
nodes: [],
|
||||
};
|
||||
return {};
|
||||
},
|
||||
},
|
||||
localVue,
|
||||
@@ -46,13 +44,13 @@ describe("FormTool", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("check props", async () => {
|
||||
it("check version change", async () => {
|
||||
const dropdowns = wrapper.findAll(".dropdown-item");
|
||||
let version = dropdowns.at(3);
|
||||
expect(version.text()).toBe("Switch to 2.0");
|
||||
let state = wrapper.emitted().onSetData[0][1];
|
||||
expect(state.tool_version).toEqual("1.0");
|
||||
expect(state.tool_id).toEqual("tool_id+1.0");
|
||||
let version = dropdowns.at(3);
|
||||
expect(version.text()).toBe("Switch to 2.0");
|
||||
await version.trigger("click");
|
||||
state = wrapper.emitted().onSetData[1][1];
|
||||
expect(state.tool_version).toEqual("2.0");
|
||||
|
||||
Reference in New Issue
Block a user