8000 Fix deprecated test · coder/coder@1a54020 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a54020

Browse files
committed
Fix deprecated test
1 parent ce790e2 commit 1a54020

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

site/src/modules/resources/AgentRow.stories.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ export const Outdated: Story = {
239239
};
240240

241241
export const Deprecated: Story = {
242+
beforeEach: () => {
243+
spyOn(API, "getBuildInfo").mockResolvedValue({
244+
...M.MockBuildInfo,
245+
version: "v99.999.9999+c1cdf14",
246+
agent_api_version: "2.0",
247+
});
248+
},
242249
args: {
243250
agent: M.MockWorkspaceAgentDeprecated,
244251
workspace: M.MockWorkspace,

0 commit comments

Comments
 (0)
0