Skip to content

Commit c5f7f7c

Browse files
committed
stop using TrackingInformation at Shipment
1 parent 7c254eb commit c5f7f7c

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

src/caller.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { Shipment } from './shipment/index.js';
2-
import { TrackingInformation } from './tracking-information/index.js';
32

43
const aShipment = new Shipment();
5-
const trackingInfo = new TrackingInformation();
6-
aShipment.trackingInformation = trackingInfo;
74

85
aShipment.shippingCompany = 'DHL';
96
aShipment.trackingNumber = '1234567890';

src/shipment/index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ export class Shipment {
33
return `${this.shippingCompany}: ${this.trackingNumber}`;
44
}
55

6-
get trackingInformation() {
7-
return this._trackingInformation;
8-
}
9-
10-
set trackingInformation(aTrackingInformation) {
11-
this._trackingInformation = aTrackingInformation;
12-
}
13-
146
get shippingCompany() {
157
return this._shippingCompany;
168
}

src/shipment/index.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import { Shipment } from '.';
2-
import { TrackingInformation } from '../tracking-information';
32

43
describe('Shipment', () => {
54
it('should provide a readable text of its tracking info', () => {
65
const shipment = new Shipment();
7-
const trackingInfo = new TrackingInformation();
8-
shipment.trackingInformation = trackingInfo;
96

107
shipment.shippingCompany = 'DHL';
118
shipment.trackingNumber = '1234567890';

0 commit comments

Comments
 (0)