{"size": 741, "ext": "js", "max_stars_repo_path": "src/Tests/subscribe.test.js", "max_stars_repo_name": "college-questr/qeustr-front-end", "max_stars_repo_stars_event_min_datetime": "2019-11-13T19:24:30.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-21T21:19:18.000Z", "max_issues_repo_path": "src/Tests/subscribe.test.js", "max_issues_repo_name": "college-questr/qeustr-front-end", "max_issues_repo_issues_event_min_datetime": "2019-11-12T06:43:14.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T20:04:36.000Z", "max_forks_repo_path": "src/Tests/subscribe.test.js", "max_forks_repo_name": "college-questr/qeustr-front-end", "max_forks_repo_forks_event_min_datetime": "2019-11-18T19:11:43.000Z", "max_forks_repo_forks_event_max_datetime": "2019-11-24T19:10:06.000Z"}
{"max_stars_count": 4, "max_issues_count": 48, "max_forks_count": 2, "avg_line_length": 25.5517241379, "max_line_length": 57, "alphanum_fraction": 0.6882591093}
import React from 'react';
import Subscribe from '../Components/subscribe'
import {
    BrowserRouter,
} from 'react-router-dom';
import {
    render,
    fireEvent
} from '@testing-library/react';
import {
    questionDetailObj
} from '../Components/testComponentData'
import { exportAllDeclaration } from '@babel/types';

test('check if Subscribe component is rendering', () => {
    render(<BrowserRouter>
        <Subscribe questionDetails={questionDetailObj} />
    </BrowserRouter>)
})

test('Subscribe button working', () => {
    const {getByText} = render(<BrowserRouter>
        <Subscribe questionDetails={questionDetailObj} />
    </BrowserRouter>)

    fireEvent.click(getByText("Follow"));

    // check if number is working
})