File tree 3 files changed +0
-14
lines changed
3 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 1
1
import { Shipment } from './shipment/index.js' ;
2
- import { TrackingInformation } from './tracking-information/index.js' ;
3
2
4
3
const aShipment = new Shipment ( ) ;
5
- const trackingInfo = new TrackingInformation ( ) ;
6
- aShipment . trackingInformation = trackingInfo ;
7
4
8
5
aShipment . shippingCompany = 'DHL' ;
9
6
aShipment . trackingNumber = '1234567890' ;
Original file line number Diff line number Diff line change @@ -3,14 +3,6 @@ export class Shipment {
3
3
return `${ this . shippingCompany } : ${ this . trackingNumber } ` ;
4
4
}
5
5
6
- get trackingInformation ( ) {
7
- return this . _trackingInformation ;
8
- }
9
-
10
- set trackingInformation ( aTrackingInformation ) {
11
- this . _trackingInformation = aTrackingInformation ;
12
- }
13
-
14
6
get shippingCompany ( ) {
15
7
return this . _shippingCompany ;
16
8
}
Original file line number Diff line number Diff line change 1
1
import { Shipment } from '.' ;
2
- import { TrackingInformation } from '../tracking-information' ;
3
2
4
3
describe ( 'Shipment' , ( ) => {
5
4
it ( 'should provide a readable text of its tracking info' , ( ) => {
6
5
const shipment = new Shipment ( ) ;
7
- const trackingInfo = new TrackingInformation ( ) ;
8
- shipment . trackingInformation = trackingInfo ;
9
6
10
7
shipment . shippingCompany = 'DHL' ;
11
8
shipment . trackingNumber = '1234567890' ;
You can’t perform that action at this time.
0 commit comments