This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db56c96
commit 92ba465
Showing
42 changed files
with
323 additions
and
341 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
module.exports = { | ||
root: true, | ||
extends: "@react-native-community", | ||
extends: '@react-native-community', | ||
env: { | ||
'jest/globals': true, | ||
}, | ||
}; |
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
6 changes: 3 additions & 3 deletions
6
apolloschurchapp/__mocks__/@apollosproject/ui-media-player.js
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
MediaPlayerSpacer: ({ children }) => children, | ||
MediaPlayerSpacer: ({children}) => children, | ||
MediaPlayer: () => 'MediaPlayer', | ||
MediaPlayerProvider: ({ children }) => children, | ||
MediaPlayerProvider: ({children}) => children, | ||
playVideoMutation: 'mutation { playVideo }', | ||
withTabBarMediaSpacer: () => ({ children }) => children, | ||
withTabBarMediaSpacer: () => ({children}) => children, | ||
}; |
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 |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = { NotificationsProvider: ({ children }) => children }; | ||
module.exports = {NotificationsProvider: ({children}) => children}; |
29 changes: 16 additions & 13 deletions
29
apolloschurchapp/__mocks__/@react-native-community/async-storage.js
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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
let cache = {}; | ||
export default { | ||
setItem: (key, value) => | ||
new Promise((resolve, reject) => | ||
typeof key !== 'string' || typeof value !== 'string' | ||
? reject(new Error('key and value must be string')) | ||
: resolve((cache[key] = value)) | ||
new Promise( | ||
(resolve, reject) => | ||
typeof key !== 'string' || typeof value !== 'string' | ||
? reject(new Error('key and value must be string')) | ||
: resolve((cache[key] = value)), | ||
), | ||
getItem: (key, value) => | ||
new Promise((resolve) => | ||
cache.hasOwnProperty(key) ? resolve(cache[key]) : resolve(null) | ||
new Promise( | ||
resolve => | ||
cache.hasOwnProperty(key) ? resolve(cache[key]) : resolve(null), | ||
), | ||
removeItem: (key) => | ||
new Promise((resolve, reject) => | ||
cache.hasOwnProperty(key) | ||
? resolve(delete cache[key]) | ||
: reject('No such key!') | ||
removeItem: key => | ||
new Promise( | ||
(resolve, reject) => | ||
cache.hasOwnProperty(key) | ||
? resolve(delete cache[key]) | ||
: reject('No such key!'), | ||
), | ||
clear: (key) => new Promise((resolve, reject) => resolve((cache = {}))), | ||
clear: key => new Promise((resolve, reject) => resolve((cache = {}))), | ||
|
||
getAllKeys: (key) => | ||
getAllKeys: key => | ||
new Promise((resolve, reject) => resolve(Object.keys(cache))), | ||
}; |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
SafeAreaConsumer: ({ children }) => | ||
children({ top: 0, bottom: 0, left: 0, right: 0 }), | ||
SafeAreaProvider: ({ children }) => children, | ||
SafeAreaConsumer: ({children}) => | ||
children({top: 0, bottom: 0, left: 0, right: 0}), | ||
SafeAreaProvider: ({children}) => children, | ||
SafeAreaView: jest.requireActual('react-native').SafeAreaView, | ||
useSafeAreaInsets: () => ({ top: 3 }), | ||
useSafeAreaInsets: () => ({top: 3}), | ||
}; |
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
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
Oops, something went wrong.