Skip to content

Commit

Permalink
feat(tests): update API version in mock handlers to v2 across multipl…
Browse files Browse the repository at this point in the history
…e packages
  • Loading branch information
cstrnt committed Feb 18, 2025
1 parent 6929ecb commit 1aaae95
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core/tests/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const handlers = [
return res(ctx.json(returnData));
}
),
rest.get(`${ABBY_BASE_URL}api/v1/data/:projectId`, (_req, res, ctx) => {
rest.get(`${ABBY_BASE_URL}api/v2/data/:projectId`, (_req, res, ctx) => {
return res(ctx.json(returnData));
}),
];
2 changes: 1 addition & 1 deletion packages/next/tests/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const handlers = [
return res(ctx.json(returnData));
}
),
rest.get(`${ABBY_BASE_URL}api/v1/data/:projectId`, (_req, res, ctx) => {
rest.get(`${ABBY_BASE_URL}api/v2/data/:projectId`, (_req, res, ctx) => {
return res(ctx.json(returnData));
}),
];
1 change: 1 addition & 0 deletions packages/node/tests/express.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const { middleware, abby } = createAbbyMiddleWare({
},
},
flags: ["flag1", "flag2"],
debug: true,
});

app.get("/", middleware, (_req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/node/tests/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const handlers = [
return res(ctx.json(returnData));
}
),
rest.get(`${ABBY_BASE_URL}api/v1/data/:projectId`, (_req, res, ctx) => {
rest.get(`${ABBY_BASE_URL}api/v2/data/:projectId`, (_req, res, ctx) => {
return res(ctx.json(returnData));
}),
];
2 changes: 1 addition & 1 deletion packages/react/tests/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const handlers = [
return res(ctx.json(returnData));
}
),
rest.get(`${ABBY_BASE_URL}api/v1/data/:projectId`, (_req, res, ctx) => {
rest.get(`${ABBY_BASE_URL}api/v2/data/:projectId`, (_req, res, ctx) => {
return res(ctx.json(returnData));
}),
];
2 changes: 1 addition & 1 deletion packages/remix/tests/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const handlers = [
return res(ctx.json(returnData));
}
),
rest.get(`${ABBY_BASE_URL}api/v1/data/:projectId`, (_req, res, ctx) => {
rest.get(`${ABBY_BASE_URL}api/v2/data/:projectId`, (_req, res, ctx) => {
return res(ctx.json(returnData));
}),
];
2 changes: 1 addition & 1 deletion packages/svelte/src/tests/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const handlers = [
return res(ctx.json(returnData));
}
),
rest.get(`${ABBY_BASE_URL}api/v1/data/:projectId`, (_req, res, ctx) => {
rest.get(`${ABBY_BASE_URL}api/v2/data/:projectId`, (_req, res, ctx) => {
return res(ctx.json(returnData));
}),
];

0 comments on commit 1aaae95

Please sign in to comment.