Skip to content

Commit 21153cf

Browse files
committed
fix: tests
1 parent f698987 commit 21153cf

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

__tests__/app/__tests__/main.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ describe('INTEGRATION - App Module', () => {
1818
})
1919
});
2020

21-
test('GET /api - when asking for the api route should return 200 and api message', async () => {
21+
test('GET /v1/api - when asking for the api route should return 200 and api message', async () => {
2222
await request(app)
23-
.get('/api')
23+
.get('/v1/api')
2424
.expect(contentTypeKey, contentTypeValue)
2525
.expect(httpSuccess)
2626
.then((response) => {

__tests__/image/__tests__/integration/images.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { jest, describe, test, beforeAll, expect, beforeEach } from "bun:test";
66
import request from "supertest";
77
import { Response } from "supertest";
88

9-
const baseRoute = "/api/images";
9+
const baseRoute = "/v1/api/images";
1010
const contentTypeKey = "Content-Type";
1111
const contentTypeValue = /json/;
1212
const httpSuccess = 200;

__tests__/tag/__tests__/tags.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { describe, test, expect, beforeAll, jest, beforeEach } from 'bun:test';
88
const contentTypeKey = 'Content-Type';
99
const contentTypeValue = /json/;
1010
const httpSuccess = 200;
11-
const baseRoute = "/api/tags";
11+
const baseRoute = "/v1/api/tags";
1212

1313
const tagResponse = {
1414
_id: expect.any(String),

__tests__/user/__tests__/users.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const contentTypeKey = 'Content-Type';
1010
const contentTypeValue = /json/;
1111
const httpSuccess = 200;
1212
const httpUnauthorized = 401;
13-
const baseRoute = "/api/user";
13+
const baseRoute = "/v1/api/user";
1414

1515
const userResponse = {
1616
_id: expect.any(String),

0 commit comments

Comments
 (0)