Files
Ryan Stelly b78be9243d lint rule & autofix for "trailing comma" (#3299)
* (lint) MOB-1063 enforce trailing commas

* autofix trailing commas

* manually fix newly introduced maxlen violations

* add trailing comma convention to i18n build
2025-12-22 20:17:13 -06:00

36 lines
982 B
TypeScript

import mockFaker from "tests/helpers/faker";
export const nativeInterface = jest.fn( );
export const CameraRoll = {
getPhotos: jest.fn( ( ) => new Promise( resolve => {
resolve( {
page_info: {
end_cursor: jest.fn( ),
has_next_page: false,
},
edges: [
{
node: {
image: {
filename: "IMG_20210901_123456.jpg",
filepath: "/path/to/IMG_20210901_123456.jpg",
extension: "jpg",
uri: "file:///path/to/IMG_20210901_123456.jpg",
height: 1920,
width: 1080,
fileSize: 123456,
playableDuration: NaN,
orientation: 1,
},
},
},
],
} );
} ) ),
getAlbums: jest.fn( ( ) => ( {
// Expecting album titles as keys and photo counts as values
// "My Amazing album": 12
} ) ),
save: jest.fn( ( _uri, _options = {} ) => mockFaker.system.filePath( ) ),
};