{"size": 802, "ext": "js", "max_stars_repo_path": "__test__/videoRoutes.test.js", "max_stars_repo_name": "SmileSquad/smileSquad", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "__test__/videoRoutes.test.js", "max_issues_repo_name": "SmileSquad/smileSquad", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "__test__/videoRoutes.test.js", "max_forks_repo_name": "SmileSquad/smileSquad", "max_forks_repo_forks_event_min_datetime": "2021-04-24T23:24:30.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-06T23:52:16.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 33.4166666667, "max_line_length": 63, "alphanum_fraction": 0.6296758105}
'use strict';

const { app } = require('../src/server.js');
const supergoose = require('@code-fellows/supergoose');
const request = supergoose(app);
describe('testing the game routes', () => {
  test('render the private page', async () => {
    let response = await request.get('/api/v1/playerDisc/:id');
    expect(response.status).toBe(200);
  });
  test('render the general room', async () => {
    let response = await request.get('/api/v1/pvp/');
    expect(response.status).toBe(200);
  });
  test('render the lose room', async () => {
    let response = await request.get('/api/v1/loser/:id');
    expect(response.status).toBe(200);
  });
  test('render the winner room', async () => {
    let response = await request.get('/api/v1/winner/:id');
    expect(response.status).toBe(200);
  });
});
