remove duplicate code
This commit is contained in:
parent
d6298e9baf
commit
f7aa751054
1 changed files with 0 additions and 32 deletions
|
|
@ -2516,37 +2516,5 @@ describe('Store', () => {
|
|||
partType: 'NON_GLASS'
|
||||
});
|
||||
});
|
||||
it('updatePhoneNumbers updates phone info in store', () => {
|
||||
// Arrange
|
||||
const homePhone = getRandomInt(1000000000, 9999999999);
|
||||
const servicePhone = getRandomInt(1000000000, 9999999999);
|
||||
const altPhone = getRandomInt(1000000000, 9999999999);
|
||||
const extension = getRandomInt(10000, 99999);
|
||||
|
||||
// Act
|
||||
store.updatePhoneNumbers({
|
||||
home: homePhone,
|
||||
service: servicePhone,
|
||||
alternative: altPhone,
|
||||
extension
|
||||
});
|
||||
|
||||
// Assert
|
||||
expect(store.contactInfo.homePhone).toEqual(homePhone);
|
||||
expect(store.contactInfo.servicePhone).toEqual(servicePhone);
|
||||
expect(store.contactInfo.alternativePhone).toEqual(altPhone);
|
||||
expect(store.contactInfo.extension).toEqual(extension);
|
||||
});
|
||||
it('All null values => contact info set in store to all null/default', () => {
|
||||
// Act
|
||||
store.updateContactInfo({});
|
||||
|
||||
// Assert
|
||||
expect(store.contactInfo.firstName).toEqual(null);
|
||||
expect(store.contactInfo.lastName).toEqual(null);
|
||||
expect(store.contactInfo.emailAddress).toEqual(null);
|
||||
expect(store.contactInfo.requestTextUpdates).toEqual(false);
|
||||
expect(store.contactInfo.notesForTechnician).toEqual('');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue