@marimo-team/frontend 0.25.2-dev107 → 0.25.2-dev111

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.25.2-dev107",
3
+ "version": "0.25.2-dev111",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -178,6 +178,22 @@ function documentSnapshot(state: NotebookState) {
178
178
  }
179
179
 
180
180
  describe("document round-trip", () => {
181
+ it("applies a server transaction that deletes every cell", () => {
182
+ setup("a", "b");
183
+ applyTransactionChanges(
184
+ [
185
+ ...replica.cellIds.inOrderIds.map((cellId) => ({
186
+ type: "delete-cell" as const,
187
+ cellId,
188
+ })),
189
+ { type: "reorder-cells", cellIds: [] },
190
+ ],
191
+ replicaActions,
192
+ () => replica.cellIds.inOrderIds,
193
+ );
194
+ expect(documentSnapshot(replica)).toEqual([]);
195
+ });
196
+
181
197
  it("initial setup converges", () => {
182
198
  setup("a", "b", "c");
183
199
  expect(documentSnapshot(primary)).toEqual(documentSnapshot(replica));