phodal/growth

View on GitHub
__tests__/components/discover/exam-detail/view/examDetailContent.test.js

Summary

Maintainability
A
2 hrs
Test Coverage
import 'react-native';
import React, {} from 'react';
import renderer from 'react-test-renderer';
import ExamDetailContent from '../../../../../src/components/discover/exam-detail/view/ExamDetailContent';
import QUIZS from '../../../../../src/constants/QUIZS';

it('renders correctly', () => {
  const examDetailContent = renderer.create(
    <ExamDetailContent quizs={QUIZS.fe} test />,
  );
  const examDetailContentJson = examDetailContent.toJSON();
  expect(examDetailContentJson).toMatchSnapshot();
});