()
| 4 | test("routes use the latest registration and restore previous registrations", () => { |
| 5 | const runtime = createPluginRuntime() |
| 6 | const first = () => "first" |
| 7 | const second = () => "second" |
| 8 | runtime.routes.register([{ name: "demo", render: first }]) |
| 9 | const dispose = runtime.routes.register([{ name: "demo", render: second }]) |