Skip to content

Commit

Permalink
fix: Remove unnecessary import and empty line from router.test.ts and…
Browse files Browse the repository at this point in the history
… router.ts
  • Loading branch information
wajeht committed Jul 28, 2024
1 parent 2c4c977 commit 91707d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import http from 'node:http';
import { openAI } from './ai';
import assert from 'node:assert';
import fs from 'node:fs/promises';
import { appConfig } from './config';
import { describe, it, before, after, mock } from 'node:test';

let server: any;
Expand Down Expand Up @@ -53,7 +52,7 @@ describe('GET /commit.sh', () => {
});
});

describe.('POST /', () => {
describe('POST /', () => {
it('should call OpenAI API and return a commit message', async () => {
const generateCommitMessageMock = mock.method(
openAI,
Expand Down
1 change: 0 additions & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ router.post(

router.get('/healthz', catchAsyncErrorMiddleware(getHealthzHandler()));


export { router };

0 comments on commit 91707d0

Please sign in to comment.