Skip to content

Commit 65a0d46

Browse files
committed
Fix formatting
1 parent 951db44 commit 65a0d46

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

client/src/components/__tests__/Sidebar.test.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe("Sidebar Environment Variables", () => {
166166
const setEnv = jest.fn();
167167
const initialEnv = {
168168
KEY1: "value1",
169-
KEY2: "value2"
169+
KEY2: "value2",
170170
};
171171
renderSidebar({ env: initialEnv, setEnv });
172172

@@ -175,13 +175,17 @@ describe("Sidebar Environment Variables", () => {
175175
// Type "NEW_" one character at a time
176176
const key1Input = screen.getByDisplayValue("KEY1");
177177
"NEW_".split("").forEach((char) => {
178-
fireEvent.change(key1Input, { target: { value: char + "KEY1".slice(1) } });
178+
fireEvent.change(key1Input, {
179+
target: { value: char + "KEY1".slice(1) },
180+
});
179181
});
180182

181183
// Verify the last setEnv call maintains the order
182-
const lastCall = setEnv.mock.calls[setEnv.mock.calls.length - 1][0] as Record<string, string>;
184+
const lastCall = setEnv.mock.calls[
185+
setEnv.mock.calls.length - 1
186+
][0] as Record<string, string>;
183187
const entries = Object.entries(lastCall);
184-
188+
185189
// The values should stay with their original keys
186190
expect(entries[0][1]).toBe("value1"); // First entry should still have value1
187191
expect(entries[1][1]).toBe("value2"); // Second entry should still have value2

0 commit comments

Comments
 (0)