Skip to content

Commit

Permalink
Add jest mock for new plugin function
Browse files Browse the repository at this point in the history
  • Loading branch information
jtklein committed Dec 25, 2024
1 parent 8fa4f57 commit 086b0e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __mocks__/vision-camera-plugin-inatvision.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
export const getPredictionsForImage = jest.fn( () => Promise.resolve( { predictions: [] } ) );
export const getPredictionsForLocation = jest.fn( () => Promise.resolve( { predictions: [] } ) );
export const removeLogListener = jest.fn( );
export const resetStoredResults = jest.fn( );
export const lookUpLocation = jest.fn( location => ( {
...location,
elevation: 12
} ) );

0 comments on commit 086b0e1

Please sign in to comment.