Browse Source

test(chase): expect edge layer in graph child count

Made-with: Cursor
master
npmrun 2 weeks ago
parent
commit
e1c7d9e846
  1. 5
      tests/stages/page_chase.test.ts

5
tests/stages/page_chase.test.ts

@ -118,14 +118,15 @@ describe("chase stage skeleton", () => {
scene.refreshView();
const firstChildren = [...(scene as any).graphLayer.children];
expect(firstChildren.length).toBe(2);
expect(firstChildren.length).toBe(3);
scene.refreshView();
const secondChildren = [...(scene as any).graphLayer.children];
expect(secondChildren.length).toBe(2);
expect(secondChildren.length).toBe(3);
expect(secondChildren[0]).not.toBe(firstChildren[0]);
expect((firstChildren[0] as any).destroyed).toBe(true);
expect((firstChildren[1] as any).destroyed).toBe(true);
expect((firstChildren[2] as any).destroyed).toBe(true);
});
it("init start entry routes to chase", () => {

Loading…
Cancel
Save