Update composer to preview external link cards (#52)
* Fetch external link metadata during compose so the user can preview and remove the embed * Add missing mocks * Update tests to match recent changes
This commit is contained in:
parent
27ee550d15
commit
6588961d2e
9 changed files with 262 additions and 64 deletions
1
__mocks__/react-native-fs.js
vendored
Normal file
1
__mocks__/react-native-fs.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export default {}
|
|
@ -311,6 +311,7 @@ export const mockedFeedStore = {
|
|||
loadLatest: jest.fn(),
|
||||
update: jest.fn(),
|
||||
checkForLatest: jest.fn().mockRejectedValue('Error checking for latest'),
|
||||
registerListeners: jest.fn().mockReturnValue(jest.fn()),
|
||||
// unknown required because of the missing private methods: _xLoading, _xIdle, _pendingWork, _initialLoad, _loadLatest, _loadMore, _update, _replaceAll, _appendAll, _prependAll, _updateAll, _getFeed, loadMoreCursor, pollCursor, _loadPromise, _updatePromise, _loadLatestPromise, _loadMorePromise
|
||||
} as unknown as FeedModel
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue