Skip to content

Commit 06b335d

Browse files
committed
chore: ran prettier
1 parent a2116ef commit 06b335d

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/lib/utils.test.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ describe("createTextResult", () => {
99
name: "Nick Taylor",
1010
twitter_username: null,
1111
github_username: "nickytonline",
12-
summary: "I'm a fan of Open Source and have a growing interest in serverless and edge computing.",
12+
summary:
13+
"I'm a fan of Open Source and have a growing interest in serverless and edge computing.",
1314
location: "Montréal, Québec, Canada",
1415
website_url: "https://OneTipAWeek.com",
15-
joined_at: "Mar 11, 2017"
16+
joined_at: "Mar 11, 2017",
1617
};
1718

1819
const mockArticle = {
1920
type_of: "article",
2021
id: 2729716,
2122
title: "Introducing the dev.to MCP server",
22-
description: "If you've been wondering how to get your AI tools talking to dev.to's content...",
23+
description:
24+
"If you've been wondering how to get your AI tools talking to dev.to's content...",
2325
slug: "introducing-the-devto-mcp-server-42jg",
2426
path: "/nickytonline/introducing-the-devto-mcp-server-42jg",
2527
comments_count: 16,
@@ -28,16 +30,16 @@ describe("createTextResult", () => {
2830
user: {
2931
name: "Nick Taylor",
3032
username: "nickytonline",
31-
user_id: 9597
32-
}
33+
user_id: 9597,
34+
},
3335
};
3436

3537
const mockTag = {
3638
id: 6,
3739
name: "react",
3840
bg_color_hex: "#61dafb",
3941
text_color_hex: "#000000",
40-
short_summary: "A JavaScript library for building user interfaces"
42+
short_summary: "A JavaScript library for building user interfaces",
4143
};
4244

4345
it("should create a CallToolResult with correct structure", () => {
@@ -62,7 +64,9 @@ describe("createTextResult", () => {
6264
const result = createTextResult(mockArticle);
6365

6466
expect(result.content[0].type).toBe("text");
65-
expect(result.content[0].text).toContain('"title": "Introducing the dev.to MCP server"');
67+
expect(result.content[0].text).toContain(
68+
'"title": "Introducing the dev.to MCP server"',
69+
);
6670
expect(result.content[0].text).toContain('"tag_list"');
6771
});
6872

@@ -89,4 +93,4 @@ describe("createTextResult", () => {
8993
expect(result.content[0].text).toContain("2729716");
9094
expect(result.content[0].text).toContain("123456");
9195
});
92-
});
96+
});

0 commit comments

Comments
 (0)