chore: generate
This commit is contained in:
@@ -37,10 +37,7 @@ void Log.init({ print: false })
|
|||||||
|
|
||||||
const testServerLayer = Layer.mergeAll(
|
const testServerLayer = Layer.mergeAll(
|
||||||
NodeHttpServer.layer(Http.createServer, { host: "127.0.0.1", port: 0 }),
|
NodeHttpServer.layer(Http.createServer, { host: "127.0.0.1", port: 0 }),
|
||||||
Workspace.defaultLayer.pipe(
|
Workspace.defaultLayer.pipe(Layer.provide(InstanceStore.defaultLayer), Layer.provide(InstanceBootstrap.defaultLayer)),
|
||||||
Layer.provide(InstanceStore.defaultLayer),
|
|
||||||
Layer.provide(InstanceBootstrap.defaultLayer),
|
|
||||||
),
|
|
||||||
SessionNs.defaultLayer,
|
SessionNs.defaultLayer,
|
||||||
)
|
)
|
||||||
const it = testEffect(testServerLayer)
|
const it = testEffect(testServerLayer)
|
||||||
@@ -1096,9 +1093,7 @@ describe("workspace sync state", () => {
|
|||||||
|
|
||||||
expect(
|
expect(
|
||||||
captured.events
|
captured.events
|
||||||
.filter(
|
.filter((event) => event.workspace === info.id && event.payload.type === Workspace.Event.Status.type)
|
||||||
(event) => event.workspace === info.id && event.payload.type === Workspace.Event.Status.type,
|
|
||||||
)
|
|
||||||
.map((event) => event.payload.properties.status),
|
.map((event) => event.payload.properties.status),
|
||||||
).toEqual(["disconnected", "connecting", "connected"])
|
).toEqual(["disconnected", "connecting", "connected"])
|
||||||
expect(calls.filter((call) => call.url.pathname === "/sync/global/event")).toHaveLength(1)
|
expect(calls.filter((call) => call.url.pathname === "/sync/global/event")).toHaveLength(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user