Commit de968191 authored by Mike Greiling's avatar Mike Greiling

Make purpose of test expectation more clear

parent 1b2cf39e
...@@ -81,7 +81,7 @@ describe('KnativeDomainEditor', () => { ...@@ -81,7 +81,7 @@ describe('KnativeDomainEditor', () => {
it('triggers save event and pass current knative hostname', () => { it('triggers save event and pass current knative hostname', () => {
wrapper.find(LoadingButton).vm.$emit('click'); wrapper.find(LoadingButton).vm.$emit('click');
return wrapper.vm.$nextTick().then(() => { return wrapper.vm.$nextTick().then(() => {
expect(wrapper.emitted('save')[0]).toEqual([]); expect(wrapper.emitted('save').length).toEqual(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