UNCLASSIFIED

Commit 8f3e85f9 authored by graham.smith's avatar graham.smith
Browse files

fix vue prop warning

parent 6b4b6a7c
...@@ -548,10 +548,7 @@ describe("TrainingAttendance", () => { ...@@ -548,10 +548,7 @@ describe("TrainingAttendance", () => {
wrapper.vm.fetchDebounced = jest.fn(); wrapper.vm.fetchDebounced = jest.fn();
// trigger the watch for wrapper.vm.options // trigger the watch for wrapper.vm.options
const mockOptions = 2; await wrapper.setProps({ reload: 1 });
wrapper.vm.reload = mockOptions;
await wrapper.vm.$nextTick();
expect(wrapper.vm.fetchDebounced).toHaveBeenCalledTimes(1); expect(wrapper.vm.fetchDebounced).toHaveBeenCalledTimes(1);
}); });
......
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