From 3d46b66684132e6460d9018ece06e41dc3a82730 Mon Sep 17 00:00:00 2001 From: Andrew Bulat Date: Wed, 17 Jul 2024 12:52:00 +0100 Subject: [PATCH] Update types in integration.test.ts --- test/integration/integration.test.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/integration/integration.test.ts b/test/integration/integration.test.ts index b4072878..5fa0f12e 100644 --- a/test/integration/integration.test.ts +++ b/test/integration/integration.test.ts @@ -1,11 +1,12 @@ import { beforeAll, describe, expect, it } from 'vitest'; import { createClients } from './utilities/setup.js'; import { LocationsEventMap } from '../../src/Locations.js'; -import { SpaceEventMap } from '../../src/Space.js'; +import Space, { SpaceEventMap } from '../../src/Space.js'; import { MembersEventMap } from '../../src/Members.js'; import { CursorsEventMap } from '../../src/Cursors.js'; import { nanoid } from 'nanoid'; import { LocksEventMap } from '../../src/Locks.js'; +import Spaces from '../../src/Spaces.js'; /* * These tests have one `describe` for each area of functionality, each of these `describe`s then containing multiple `it`s. @@ -146,11 +147,11 @@ describe( }); describe('cursors', () => { - let performerSpaces; - let observerSpaces; - let performerClientId; - let performerSpace; - let observerSpace; + let performerSpaces: Spaces; + let observerSpaces: Spaces; + let performerClientId: string; + let performerSpace: Space; + let observerSpace: Space; beforeAll(async () => { [{ spaces: performerSpaces, clientId: performerClientId }, { spaces: observerSpaces }] = await createClients({