mirror of
https://github.com/status-im/react-native-cameraroll.git
synced 2025-01-22 07:38:58 +00:00
0c453b6118
Added typescript binding Fixed flow type issues renamed NativeModule to RNCCameraRoll Added basic jest tests prettier/lint issues fixed
27 lines
640 B
JavaScript
27 lines
640 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow
|
|
*/
|
|
/* eslint-env jest */
|
|
const {device, expect, element, by} = require('detox');
|
|
|
|
describe('CameraRoll', () => {
|
|
beforeEach(async () => {
|
|
await device.launchApp({
|
|
permissions: {
|
|
photos: 'YES',
|
|
// camera: 'YES',
|
|
},
|
|
});
|
|
});
|
|
|
|
it('should load example app with no errors and show all the examples by default', async () => {
|
|
await expect(element(by.text('Big Images'))).toExist();
|
|
});
|
|
});
|