text: import { formattedCaseDetail as formattedCaseDetailComputed } from '../../src/presenter/computeds/formattedCaseDetail';
  import { runCompute } from 'cerebral/test';
  import { withAppContextDecorator } from '../../src/withAppContext';
  
  const formattedCaseDetail = withAppContextDecorator(
    formattedCaseDetailComputed,
  );
  
  export default (test, count = 0) => {
    return it('Petitions clerk views Draft Documents', async () => {
      test.setState('caseDetail', {});
      await test.runSequence('gotoCaseDetailSequence', {
        docketNumber: test.docketNumber,
      });
      const formatted = runCompute(formattedCaseDetail, {
        state: test.getState(),
      });
  
      expect(formatted.draftDocuments.length).toEqual(count);
    });
  };
  