import { flushPromises, isDebuggerConnected, isTest, testIdProps } from './test';

describe('test', function () {
  it('isDebuggerConnected', function () {
    expect(isDebuggerConnected()).toBeFalsy();
  });

  it('isTest', function () {
    expect(isTest()).toBeTruthy();
  });

  it('testIdProps', function () {
    expect(testIdProps('fake-id')).toStrictEqual({
      accessibilityLabel: 'fake-id',
      testID: 'fake-id',
    });
  });

  it('can flush a promise', function () {
    try {
      flushPromises();
    } catch (error) {
      fail(error);
    }
  });
});
