UNCLASSIFIED

Commit 8c8babd0 authored by Keith Becker's avatar Keith Becker
Browse files

refactor unit tests

parent 3d979aad
...@@ -216,4 +216,25 @@ describe("SelectAddStudentsToCourseDialog", () => { ...@@ -216,4 +216,25 @@ describe("SelectAddStudentsToCourseDialog", () => {
await wrapper.vm.$nextTick(); await wrapper.vm.$nextTick();
expect(wrapper.vm.updateCourseMembers).toHaveBeenCalled(); expect(wrapper.vm.updateCourseMembers).toHaveBeenCalled();
}); });
it("test canSubmit", async () => {
const wrapper = shallowMount(SelectAddStudentsToCourseDialog, {
propsData: {
value: [],
selectedMembers: [],
},
mocks: {
$store: {
commit: jest.fn(),
},
},
vuetify,
});
wrapper.vm.course = {
name: "test",
capacity: 10,
registrations: [{ test: "test" }],
};
wrapper.vm.courseMembers = [{ test: "test" }];
expect(wrapper.vm.canSubmit).toEqual(true);
});
}); });
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment