xref: /expo/apps/test-suite/tests/StoreReview.js (revision 41f8180b)
1import * as StoreReview from 'expo-store-review';
2import { Platform } from 'react-native';
3
4export const name = 'StoreReview';
5
6export function test({ describe, it, expect }) {
7  describe(`isAvailableAsync()`, () => {
8    if (Platform.OS === 'android') {
9      it(`is is available`, async () => {
10        expect(await StoreReview.isAvailableAsync()).toBe(true);
11      });
12    } else {
13      it(`is not available`, async () => {
14        expect(await StoreReview.isAvailableAsync()).toBe(false);
15      });
16    }
17  });
18}
19