Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/dds/tree/src/test/shared-tree/sharedTree.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2319,8 +2319,7 @@ describe("SharedTree", () => {
new TreeViewConfiguration({ schema: JsonAsTree.Array, enableSchemaValidation }),
);
view1Json.upgradeSchema();
// TODO:#8915: This should be able to insert the _number_ 44, not the string, but currently cannot - see bug #8915
view1Json.root.insertAtEnd("44");
view1Json.root.insertAtEnd(44);

tree1.containerRuntime.connected = true;

Expand Down Expand Up @@ -2467,10 +2466,14 @@ describe("SharedTree", () => {
const view = tree.viewWith(
new TreeViewConfiguration({ schema, enableSchemaValidation }),
);
view.initialize({ foo: [] });
Tree.runTransaction(view, () => {
view.initialize({ foo: [] });
view.root.foo.insertAtStart("a");
view.root.foo.insertAtStart("b");
// This dispose does not seem to be enough to prevent
// Error: Cannot create a second tree view from the same checkout
// when creating view2 below.
view.dispose();

// Update schema which now allows all primitives under field "foo".
const view2 = tree.viewWith(
Expand Down
Loading