@marimo-team/frontend 0.24.3-dev71 → 0.24.3-dev73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/frontend",
3
- "version": "0.24.3-dev71",
3
+ "version": "0.24.3-dev73",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -155,21 +155,32 @@ describe("AgentPanel initialization", () => {
155
155
 
156
156
  await act(async () => initialization.resolve(initialized));
157
157
  expect(agent.authenticate).not.toHaveBeenCalled();
158
- if (sessionId) {
159
- expect(agent.loadSession).toHaveBeenCalledExactlyOnceWith({
160
- sessionId,
161
- cwd: "/notebooks",
162
- mcpServers: [],
163
- });
164
- expect(agent.newSession).not.toHaveBeenCalled();
165
- } else {
166
- expect(agent.newSession).toHaveBeenCalledExactlyOnceWith({
167
- cwd: "/notebooks",
168
- mcpServers: [],
169
- _meta: undefined,
170
- });
171
- expect(agent.loadSession).not.toHaveBeenCalled();
172
- }
158
+ expect(agent.loadSession.mock.calls).toEqual(
159
+ sessionId
160
+ ? [
161
+ [
162
+ {
163
+ sessionId,
164
+ cwd: "/notebooks",
165
+ mcpServers: [],
166
+ },
167
+ ],
168
+ ]
169
+ : [],
170
+ );
171
+ expect(agent.newSession.mock.calls).toStrictEqual(
172
+ sessionId
173
+ ? []
174
+ : [
175
+ [
176
+ {
177
+ cwd: "/notebooks",
178
+ mcpServers: [],
179
+ _meta: undefined,
180
+ },
181
+ ],
182
+ ],
183
+ );
173
184
  expect(
174
185
  screen.getByRole("button", { name: "Restart" }),
175
186
  ).toBeInTheDocument();