Fix formatting

This commit is contained in:
Ola Hungerford
2025-03-24 09:47:34 -07:00
parent 951db44bad
commit 65a0d46816

View File

@@ -166,7 +166,7 @@ describe("Sidebar Environment Variables", () => {
const setEnv = jest.fn();
const initialEnv = {
KEY1: "value1",
KEY2: "value2"
KEY2: "value2",
};
renderSidebar({ env: initialEnv, setEnv });
@@ -175,11 +175,15 @@ describe("Sidebar Environment Variables", () => {
// Type "NEW_" one character at a time
const key1Input = screen.getByDisplayValue("KEY1");
"NEW_".split("").forEach((char) => {
fireEvent.change(key1Input, { target: { value: char + "KEY1".slice(1) } });
fireEvent.change(key1Input, {
target: { value: char + "KEY1".slice(1) },
});
});
// Verify the last setEnv call maintains the order
const lastCall = setEnv.mock.calls[setEnv.mock.calls.length - 1][0] as Record<string, string>;
const lastCall = setEnv.mock.calls[
setEnv.mock.calls.length - 1
][0] as Record<string, string>;
const entries = Object.entries(lastCall);
// The values should stay with their original keys