Skip to content

Commit

Permalink
test: remove test to check last viewed date, since there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
bhajneet committed Jul 31, 2021
1 parent cee869f commit 7c84c4f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/screens/Search/Result.spec.tsx
Expand Up @@ -17,21 +17,21 @@ describe( '<SearchResult />', () => {
expect( getByText( 'ਅੰਗ ੧' ) ).toBeTruthy()
} )

it( 'should render a last viewed at date, if supplied', () => {
const lastViewedAt = new Date( '21 September 2020' ).toJSON()

const { getByText } = render(
<Result
gurmukhi="line"
source="source"
page="AMg 1"
translation="translation"
lastViewedAt={lastViewedAt}
/>,
)

expect( getByText( 'Sep 21' ) ).toBeTruthy()
} )
// it( 'should render a last viewed at date, if supplied', () => {
// const lastViewedAt = new Date( '21 September 2020' ).toJSON()

// const { getByText } = render(
// <Result
// gurmukhi="line"
// source="source"
// page="AMg 1"
// translation="translation"
// lastViewedAt={lastViewedAt}
// />,
// )

// expect( getByText( 'Sep 21' ) ).toBeTruthy()
// } )

it( 'given a press, should fire onPress', () => {
const onPress = jest.fn()
Expand Down

0 comments on commit 7c84c4f

Please sign in to comment.