File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ const trackingInfo = new TrackingInformation();
6
6
aShipment . trackingInformation = trackingInfo ;
7
7
8
8
aShipment . shippingCompany = 'DHL' ;
9
- aShipment . trackingInformation . trackingNumber = '1234567890' ;
9
+ aShipment . trackingNumber = '1234567890' ;
10
10
11
11
console . log ( aShipment . trackingInfo ) ;
Original file line number Diff line number Diff line change @@ -14,4 +14,8 @@ export class Shipment {
14
14
set shippingCompany ( arg ) {
15
15
this . _trackingInformation . shippingCompany = arg ;
16
16
}
17
+
18
+ set trackingNumber ( arg ) {
19
+ this . _trackingInformation . trackingNumber = arg ;
20
+ }
17
21
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ describe('Shipment', () => {
8
8
shipment . trackingInformation = trackingInfo ;
9
9
10
10
shipment . shippingCompany = 'DHL' ;
11
- shipment . trackingInformation . trackingNumber = '1234567890' ;
11
+ shipment . trackingNumber = '1234567890' ;
12
12
13
13
expect ( shipment . trackingInfo ) . toEqual ( 'DHL: 1234567890' ) ;
14
14
} ) ;
You can’t perform that action at this time.
0 commit comments