Skip to content

Commit cf0f9c5

Browse files
committed
Misc cleanup in spacing
1 parent c665bcf commit cf0f9c5

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

test/src/tools/core.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ describe("configureCoreTools", () => {
4949
const call = (server.tool as jest.Mock).mock.calls.find(
5050
([toolName]) => toolName === "core_list_projects"
5151
);
52+
5253
if (!call) throw new Error("core_list_projects tool not registered");
5354
const [, , , handler] = call;
5455

@@ -129,6 +130,7 @@ describe("configureCoreTools", () => {
129130
const call = (server.tool as jest.Mock).mock.calls.find(
130131
([toolName]) => toolName === "core_list_projects"
131132
);
133+
132134
if (!call) throw new Error("core_list_projects tool not registered");
133135
const [, , , handler] = call;
134136

@@ -155,6 +157,7 @@ describe("configureCoreTools", () => {
155157
const call = (server.tool as jest.Mock).mock.calls.find(
156158
([toolName]) => toolName === "core_list_projects"
157159
);
160+
158161
if (!call) throw new Error("core_list_projects tool not registered");
159162
const [, , , handler] = call;
160163

@@ -182,6 +185,7 @@ describe("configureCoreTools", () => {
182185
const call = (server.tool as jest.Mock).mock.calls.find(
183186
([toolName]) => toolName === "core_list_project_teams"
184187
);
188+
185189
if (!call) throw new Error("core_list_project_teams tool not registered");
186190
const [, , , handler] = call;
187191

@@ -254,6 +258,7 @@ describe("configureCoreTools", () => {
254258
const call = (server.tool as jest.Mock).mock.calls.find(
255259
([toolName]) => toolName === "core_list_project_teams"
256260
);
261+
257262
if (!call) throw new Error("core_list_project_teams tool not registered");
258263
const [, , , handler] = call;
259264

@@ -280,6 +285,7 @@ describe("configureCoreTools", () => {
280285
const call = (server.tool as jest.Mock).mock.calls.find(
281286
([toolName]) => toolName === "core_list_project_teams"
282287
);
288+
283289
if (!call) throw new Error("core_list_project_teams tool not registered");
284290
const [, , , handler] = call;
285291

test/src/tools/work.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ describe("configureWorkTools", () => {
167167
const call = (server.tool as jest.Mock).mock.calls.find(
168168
([toolName]) => toolName === "work_assign_iterations"
169169
);
170+
170171
if (!call) throw new Error("work_assign_iterations tool not registered");
171172
const [, , , handler] = call;
172173

@@ -231,6 +232,7 @@ describe("configureWorkTools", () => {
231232
const call = (server.tool as jest.Mock).mock.calls.find(
232233
([toolName]) => toolName === "work_assign_iterations"
233234
);
235+
234236
if (!call) throw new Error("work_assign_iterations tool not registered");
235237
const [, , , handler] = call;
236238

@@ -261,6 +263,7 @@ describe("configureWorkTools", () => {
261263
const call = (server.tool as jest.Mock).mock.calls.find(
262264
([toolName]) => toolName === "work_assign_iterations"
263265
);
266+
264267
if (!call) throw new Error("work_assign_iterations tool not registered");
265268
const [, , , handler] = call;
266269

@@ -292,12 +295,11 @@ describe("configureWorkTools", () => {
292295
const call = (server.tool as jest.Mock).mock.calls.find(
293296
([toolName]) => toolName === "work_create_iterations"
294297
);
298+
295299
if (!call) throw new Error("work_create_iterations tool not registered");
296300
const [, , , handler] = call;
297301

298-
(
299-
mockWorkItemTrackingApi.createOrUpdateClassificationNode as jest.Mock
300-
).mockResolvedValue({
302+
(mockWorkItemTrackingApi.createOrUpdateClassificationNode as jest.Mock).mockResolvedValue({
301303
id: 126391,
302304
identifier: "a5c68379-3258-4d62-971c-71c1c459336e",
303305
name: "Web",
@@ -375,6 +377,7 @@ describe("configureWorkTools", () => {
375377
const call = (server.tool as jest.Mock).mock.calls.find(
376378
([toolName]) => toolName === "work_create_iterations"
377379
);
380+
378381
if (!call) throw new Error("work_create_iterations tool not registered");
379382
const [, , , handler] = call;
380383

@@ -405,6 +408,7 @@ describe("configureWorkTools", () => {
405408
const call = (server.tool as jest.Mock).mock.calls.find(
406409
([toolName]) => toolName === "work_create_iterations"
407410
);
411+
408412
if (!call) throw new Error("work_create_iterations tool not registered");
409413
const [, , , handler] = call;
410414

0 commit comments

Comments
 (0)