Skip to content

Commit 2650156

Browse files
committed
chore: lint
1 parent 765c067 commit 2650156

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/react-core/test/ms-teams/useMsTeamsTeams.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ describe("useMsTeamsTeams", () => {
125125
{
126126
ms_teams_teams: [
127127
{ id: "1", displayName: "Team Alpha" },
128-
null as any,
128+
null,
129129
{ id: "2", displayName: "Team Beta" },
130-
undefined as any,
131-
false as any,
132-
0 as any,
133-
],
130+
undefined,
131+
false,
132+
0,
133+
] as unknown as Array<{ id: string; displayName: string }>,
134134
skip_token: null,
135135
},
136136
];
@@ -146,7 +146,7 @@ describe("useMsTeamsTeams", () => {
146146

147147
it("returns empty array when data is undefined", () => {
148148
// Set data to undefined to test the nullish coalescing
149-
mockSwrReturnValue.data = undefined as any;
149+
mockSwrReturnValue.data = undefined as unknown as typeof mockSwrReturnValue.data;
150150

151151
const { result } = renderHook(() => useMsTeamsTeams({}));
152152

packages/react-core/test/slack/useSlackChannels.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ describe("useSlackChannels", () => {
128128
{
129129
slack_channels: [
130130
{ id: "1", name: "general" },
131-
null as any,
131+
null,
132132
{ id: "2", name: "random" },
133-
undefined as any,
134-
false as any,
135-
0 as any,
136-
],
133+
undefined,
134+
false,
135+
0,
136+
] as unknown as Array<{ id: string; name: string }>,
137137
next_cursor: null,
138138
},
139139
];
@@ -149,7 +149,7 @@ describe("useSlackChannels", () => {
149149

150150
it("returns empty array when data is undefined", () => {
151151
// Set data to undefined to test the nullish coalescing
152-
mockSwrReturnValue.data = undefined as any;
152+
mockSwrReturnValue.data = undefined as unknown as typeof mockSwrReturnValue.data;
153153

154154
const { result } = renderHook(() => useSlackChannels({}));
155155

0 commit comments

Comments
 (0)