react-native-cameraroll/example/e2e/sanityTest.spec.js
Bartol Karuza 0c453b6118 general cleanup
Added typescript binding
Fixed flow type issues
renamed NativeModule to RNCCameraRoll
Added basic jest tests
prettier/lint issues fixed
2019-03-03 14:39:57 +08:00

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();
});
});