Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Added mock for react-native-languages
Browse files Browse the repository at this point in the history
  • Loading branch information
nirre7 committed Oct 5, 2018
1 parent 9b01d37 commit 5582921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions boilerplate/test/mock-react-native-languages.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jest.mock("react-native-languages", () => {
return {
languages: () => `en`
}
})
1 change: 1 addition & 0 deletions boilerplate/test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "react-native"
import "./mock-i18n"
import "./mock-reactotron"
import "./mock-textinput"
import "./mock-react-native-languages"

declare global {
var __TEST__
Expand Down

0 comments on commit 5582921

Please sign in to comment.