-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #952 from opentripplanner/dev
Release: July 24, 2023
- Loading branch information
Showing
136 changed files
with
4,738 additions
and
3,289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import '../test-utils/mock-window-url' | ||
import { checkShouldReplanTrip } from '../../lib/actions/form' | ||
|
||
describe('actions > form', () => { | ||
describe('checkShouldReplanTrip', () => { | ||
it('should not replan trip on mobile (with default autoPlan settings) if both locations change from null', () => { | ||
const autoPlan = { | ||
default: 'ONE_LOCATION_CHANGED', | ||
mobile: 'BOTH_LOCATIONS_CHANGED' | ||
} | ||
const oldQuery = { | ||
from: null, | ||
to: null | ||
} | ||
const newQuery = { | ||
from: { name: 'From place' }, | ||
to: { name: 'To place' } | ||
} | ||
expect( | ||
checkShouldReplanTrip(autoPlan, true, oldQuery, newQuery) | ||
.shouldReplanTrip | ||
).toBe(null) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.