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';
// Act
mobileServiceZipCodeQuestion.vm.$emit('update:modelValue', newMobileServiceZipCode);
mobileServiceZipCodeQuestion.vm.$emit('service-zip-code-updated', newMobileServiceZipCode);
await wrapper.vm.$nextTick();
// Assert

View file

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