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