formattedAddress tests amended for postcode

This commit is contained in:
Carlos Jimenez Ruiz 2021-06-13 19:16:35 +02:00
parent 48f80fad8f
commit 5d8a9938d6
1 changed files with 3 additions and 2 deletions

View File

@ -27,18 +27,19 @@ describe('Ticket', () => {
});
describe('formattedAddress()', () => {
it('should return a full fromatted address with city and province', () => {
it('should return the full fromatted address with city and province', () => {
controller.summary = {
address: {
province: {
name: 'Gotham'
},
street: '1007 Mountain Drive',
postalCode: 46060,
city: 'Gotham'
}
};
expect(controller.formattedAddress).toEqual('1007 Mountain Drive - Gotham (Gotham)');
expect(controller.formattedAddress).toEqual('1007 Mountain Drive - 46060 - Gotham (Gotham)');
});
});
});