2957-ticket_summary_postcode + fetched tags css #649

Merged
joan merged 4 commits from 2957-ticket_summary_postcode into dev 2021-06-14 10:00:27 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 5d8a9938d6 - Show all commits

View File

@ -27,18 +27,19 @@ describe('Ticket', () => {
}); });
describe('formattedAddress()', () => { 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 = { controller.summary = {
address: { address: {
province: { province: {
name: 'Gotham' name: 'Gotham'
}, },
street: '1007 Mountain Drive', street: '1007 Mountain Drive',
postalCode: 46060,
city: 'Gotham' city: 'Gotham'
} }
}; };
expect(controller.formattedAddress).toEqual('1007 Mountain Drive - Gotham (Gotham)'); expect(controller.formattedAddress).toEqual('1007 Mountain Drive - 46060 - Gotham (Gotham)');
}); });
}); });
}); });