fix tests

This commit is contained in:
Bill Richardson 2026-02-25 14:37:43 -05:00
parent b4e929d574
commit 8aeea7d5ef
2 changed files with 4 additions and 4 deletions

View file

@ -203,7 +203,7 @@ describe('service-location.vue', () => {
const newMobileServiceZipCode = '45433'; const newMobileServiceZipCode = '45433';
// Act // Act
mobileServiceZipCodeQuestion.vm.$emit('update:modelValue', newMobileServiceZipCode); mobileServiceZipCodeQuestion.vm.$emit('service-zip-code-updated', newMobileServiceZipCode);
await wrapper.vm.$nextTick(); await wrapper.vm.$nextTick();
// Assert // Assert

View file

@ -7,7 +7,7 @@ describe('service-zip-question.vue', () => {
const text = '12345'; const text = '12345';
const wrapper = shallowMount(serviceZipQuestion, { const wrapper = shallowMount(serviceZipQuestion, {
props: { props: {
modelValue: text parentZipCode: text
}, },
attachTo: document.body attachTo: document.body
}); });
@ -32,9 +32,9 @@ describe('service-zip-question.vue', () => {
// Act // Act
wrapper.vm.internalZipcode = '55555'; wrapper.vm.internalZipcode = '55555';
wrapper.vm.updateModelValue(); wrapper.vm.emitZipCodeUpdate();
// Assert // Assert
expect(wrapper.emitted('update:modelValue')).toEqual([['55555']]); expect(wrapper.emitted('service-zip-code-updated')).toEqual([['55555']]);
}); });
}); });