Skip to content

Commit

Permalink
Merge pull request #35558 from JKobrynski/migrateCameraRollToTypeScript
Browse files Browse the repository at this point in the history
[No QA] [TS migration] Migrate 'camera-roll.js' mock to TypeScript
  • Loading branch information
grgia authored Feb 14, 2024
2 parents 60933b1 + 6688f1f commit 574157e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
5 changes: 0 additions & 5 deletions __mocks__/@react-native-camera-roll/camera-roll.js

This file was deleted.

15 changes: 15 additions & 0 deletions __mocks__/@react-native-camera-roll/camera-roll.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type {CameraRoll} from '@react-native-camera-roll/camera-roll';

type CameraRollMock = {
CameraRoll: {
save: typeof CameraRoll.save;
};
};

const cameraRollMock: CameraRollMock = {
CameraRoll: {
save: jest.fn(),
},
};

export default cameraRollMock;

0 comments on commit 574157e

Please sign in to comment.