Skip to content

Commit

Permalink
fix 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshsangwan committed Jan 27, 2024
1 parent 054bb82 commit 57ebc41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "Update coverage badge" -a
1 change: 1 addition & 0 deletions unitTest/LiveMatches.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ chai.use(chaiHttp);

describe('LiveMatches API', function () {
it('should GET all the live matches', function (done) {
this.timeout(20000);
chai.request(server)
.get('/live') // adjust this path to your API endpoint
.end(function (err, res) {
Expand Down
3 changes: 2 additions & 1 deletion unitTest/MatchStats.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function assertResultSubset(result, expectedOutput) {

describe('MatchStats API', function () {
it('should GET a specific match by id', async function () {
this.timeout(20000);
const id = 'nLSAYi2BckuKRVA8'; // replace with a valid match id

try {
Expand All @@ -29,7 +30,7 @@ describe('MatchStats API', function () {
});

it('should GET stats of all the live matches', async function () {
this.timeout(10000);
this.timeout(20000);
try {
const body = await apiCall(`/live1`);
assert.equal(body.status, true);
Expand Down

0 comments on commit 57ebc41

Please sign in to comment.