Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 896ab19

Browse files
committed
make fmt
1 parent 5dd8416 commit 896ab19

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.stories.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ export const PresetNoneSelected: Story = {
207207
onSubmit: (request, owner) => {
208208
// Assert that template_version_preset_id is not present in the request
209209
console.assert(
210-
!('template_version_preset_id' in request),
211-
'template_version_preset_id should not be present when "None" is selected'
210+
!("template_version_preset_id" in request),
211+
'template_version_preset_id should not be present when "None" is selected',
212212
);
213-
action('onSubmit')(request, owner);
213+
action("onSubmit")(request, owner);
214214
},
215215
},
216216
play: async ({ canvasElement }) => {
@@ -225,13 +225,17 @@ export const PresetNoneSelected: Story = {
225225
await userEvent.click(canvas.getByText("None"));
226226

227227
// Fill in required fields and submit to test the API call
228-
await userEvent.type(canvas.getByLabelText("Workspace Name"), "test-workspace");
228+
await userEvent.type(
229+
canvas.getByLabelText("Workspace Name"),
230+
"test-workspace",
231+
);
229232
await userEvent.click(canvas.getByText("Create workspace"));
230233
},
231234
parameters: {
232235
docs: {
233236
description: {
234-
story: "This story tests that when 'None' preset is selected, the template_version_preset_id field is not included in the form submission. The story first selects a preset to set the field value, then selects 'None' to unset it, and finally submits the form to verify the API call behavior.",
237+
story:
238+
"This story tests that when 'None' preset is selected, the template_version_preset_id field is not included in the form submission. The story first selects a preset to set the field value, then selects 'None' to unset it, and finally submits the form to verify the API call behavior.",
235239
},
236240
},
237241
},

0 commit comments

Comments
 (0)