-
Notifications
You must be signed in to change notification settings - Fork 6
fix: tests #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main.old
Are you sure you want to change the base?
fix: tests #136
Conversation
| }) | ||
| // sen har vi flera paket som ska till till Arjeplog | ||
| range(10).map((id) => | ||
| car.handleBooking(new Booking({ id: `b-${id+2}`, ...ljusdalToArjeplog })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Booking Id's should be unique
| car.handleBooking( | ||
| new Booking({ | ||
| id: 1, | ||
| id: 'b-1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also changed naming style of booking id's
| toArray() | ||
| ).toPromise() | ||
|
|
||
| expect(log).toEqual([ // TODO: vilken ordning är mest logisk? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Några premisser från verkligheten tänker jag:
- När platsen är exakt samma så borde avstigning och urlastning ske före påstigning och lastning. Ändå får vi "AtPickup" före "Delivery" i Ljusdal, förmodligen på grund av ordningen på bokningarna.
Med det sagt är väl inte denna ordning så värst ologisk?
Jag reagerar dock på skillnaden 'Pickup' !== 'AtPickup'
ecbdf9d to
99debd9
Compare
|
Rebase:at på ny main, och tacklat ändringar. Lite nya klurigheter har blivit introducerade som kraschar testsviten under körning. Får titta vidare på detta nästa vecka. |
92bec3a to
a4be19d
Compare
a4be19d to
4e10bc6
Compare
Goal: fix all existing tests. 50% done.