diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-18 18:14:46 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 18:14:46 -0600 |
commit | 6588961d2e075ed047857d71346e3a63282ee58f (patch) | |
tree | 54c75536bb623ccc14d26f9a12e0e42c9dd481b9 /__mocks__ | |
parent | 27ee550d15321b17200f844038e8d6e0a8975139 (diff) | |
download | voidsky-6588961d2e075ed047857d71346e3a63282ee58f.tar.zst |
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
Diffstat (limited to '__mocks__')
-rw-r--r-- | __mocks__/react-native-fs.js | 1 | ||||
-rw-r--r-- | __mocks__/state-mock.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/__mocks__/react-native-fs.js b/__mocks__/react-native-fs.js new file mode 100644 index 000000000..b1c6ea436 --- /dev/null +++ b/__mocks__/react-native-fs.js @@ -0,0 +1 @@ +export default {} diff --git a/__mocks__/state-mock.ts b/__mocks__/state-mock.ts index b26e62510..129f9c859 100644 --- a/__mocks__/state-mock.ts +++ b/__mocks__/state-mock.ts @@ -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 |