2957-ticket_summary_postcode + fetched tags css #649
|
@ -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)');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue