Skip to content

Commit

Permalink
fix(stop-viewer): Update snapshot, cleanup whitespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Feb 13, 2020
1 parent cce4340 commit 55bc8a7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 163 deletions.
180 changes: 20 additions & 160 deletions __tests__/components/viewers/__snapshots__/stop-viewer.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -304,38 +304,10 @@ exports[`components > viewers > stop viewer should render countdown times after
<b>
Plan a trip:
</b>
<LocationIcon
type="from"
>
<i
className="fa from-location-icon fa-dot-circle-o"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
From here
</button>
|
<LocationIcon
type="to"
>
<i
className="fa to-location-icon fa-map-marker"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
To here
</button>
<FromToLocationPicker
onFromClick={[Function]}
onToClick={[Function]}
/>
</div>
<div
style={
Expand Down Expand Up @@ -858,38 +830,10 @@ exports[`components > viewers > stop viewer should render countdown times for st
<b>
Plan a trip:
</b>
<LocationIcon
type="from"
>
<i
className="fa from-location-icon fa-dot-circle-o"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
From here
</button>
|
<LocationIcon
type="to"
>
<i
className="fa to-location-icon fa-map-marker"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
To here
</button>
<FromToLocationPicker
onFromClick={[Function]}
onToClick={[Function]}
/>
</div>
<div
style={
Expand Down Expand Up @@ -1421,38 +1365,10 @@ exports[`components > viewers > stop viewer should render times after midnight w
<b>
Plan a trip:
</b>
<LocationIcon
type="from"
>
<i
className="fa from-location-icon fa-dot-circle-o"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
From here
</button>
|
<LocationIcon
type="to"
>
<i
className="fa to-location-icon fa-map-marker"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
To here
</button>
<FromToLocationPicker
onFromClick={[Function]}
onToClick={[Function]}
/>
</div>
<div
style={
Expand Down Expand Up @@ -2341,38 +2257,10 @@ exports[`components > viewers > stop viewer should render with OTP transit index
<b>
Plan a trip:
</b>
<LocationIcon
type="from"
>
<i
className="fa from-location-icon fa-dot-circle-o"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
From here
</button>
|
<LocationIcon
type="to"
>
<i
className="fa to-location-icon fa-map-marker"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
To here
</button>
<FromToLocationPicker
onFromClick={[Function]}
onToClick={[Function]}
/>
</div>
<div
style={
Expand Down Expand Up @@ -3995,38 +3883,10 @@ exports[`components > viewers > stop viewer should render with TriMet transit in
<b>
Plan a trip:
</b>
<LocationIcon
type="from"
>
<i
className="fa from-location-icon fa-dot-circle-o"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
From here
</button>
|
<LocationIcon
type="to"
>
<i
className="fa to-location-icon fa-map-marker"
/>
</LocationIcon>
<button
className="link-button"
onClick={[Function]}
>
To here
</button>
<FromToLocationPicker
onFromClick={[Function]}
onToClick={[Function]}
/>
</div>
<div
style={
Expand Down
4 changes: 2 additions & 2 deletions __tests__/components/viewers/stop-viewer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import StopViewer from '../../../lib/components/viewers/stop-viewer'
import {restoreDateNowBehavior, setDefaultTestTime, setTestTime} from '../../test-utils'
import {getMockInitialState, mockWithProvider} from '../../test-utils/mock-data/store'
import { restoreDateNowBehavior, setDefaultTestTime, setTestTime } from '../../test-utils'
import { getMockInitialState, mockWithProvider } from '../../test-utils/mock-data/store'

describe('components > viewers > stop viewer', () => {
afterEach(restoreDateNowBehavior)
Expand Down
2 changes: 1 addition & 1 deletion lib/components/viewers/stop-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class StopViewer extends Component {
.format(timeFormat)}
</button>
</div>

<b>Plan a trip:</b>
<FromToLocationPicker onFromClick={this._onClickPlanFrom} onToClick={this._onClickPlanTo} />
</div>

Expand Down

0 comments on commit 55bc8a7

Please sign in to comment.