-
Notifications
You must be signed in to change notification settings - Fork 5
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 #2210 from edenmind/YunusAndreasson/issue2207
feat(mobile): ✨ Add transliteration in grammar
- Loading branch information
Showing
12 changed files
with
72 additions
and
46 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
Binary file not shown.
Empty file.
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,32 @@ | ||
import { it } from '@jest/globals' | ||
import TextGrammar from './text-grammar.js' | ||
import React from 'react' | ||
import { Provider } from 'react-redux' | ||
import { store } from '../redux/store.js' | ||
import { NavigationContainer } from '@react-navigation/native' | ||
import { render } from '@testing-library/react-native' | ||
|
||
describe('TextGrammar', () => { | ||
it('renders the required properties', () => { | ||
const props = { | ||
route: { | ||
params: { | ||
grammar: 'some grammar', | ||
arabic: 'some arabic text', | ||
english: 'some english text' | ||
} | ||
} | ||
} | ||
|
||
const { getByText } = render( | ||
<Provider store={store}> | ||
<NavigationContainer> | ||
<TextGrammar {...props} /> | ||
</NavigationContainer> | ||
</Provider> | ||
) | ||
|
||
expect(getByText('some grammar')).toBeDefined() | ||
expect(getByText('some arabic text')).toBeDefined() | ||
}) | ||
}) |
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,30 @@ | ||
import React from 'react' | ||
import { render } from '@testing-library/react-native' | ||
import { Provider } from 'react-redux' | ||
import { store } from '../redux/store.js' | ||
import { NavigationContainer } from '@react-navigation/native' | ||
import TextListCardGrammar from './text-list-card-grammar.js' | ||
|
||
describe('TextListCardGrammar', () => { | ||
it('renders the required properties', () => { | ||
const props = { | ||
navigation: {}, | ||
setShouldReload: jest.fn(), | ||
text: { | ||
english: 'some english text', | ||
arabic: 'some arabic text' | ||
} | ||
} | ||
|
||
const { getByText } = render( | ||
<Provider store={store}> | ||
<NavigationContainer> | ||
<TextListCardGrammar {...props} /> | ||
</NavigationContainer> | ||
</Provider> | ||
) | ||
|
||
expect(getByText('some english text')).toBeDefined() | ||
expect(getByText('some arabic text')).toBeDefined() | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.