From 612093807f9333315fd85c94affac31f44616151 Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:51:28 -0500 Subject: [PATCH] chore: fix compilation issues --- suite/src/__tests__/fast/update.test.ts | 4 ++-- .../__tests__/slow/ceramic-cas-integration.test.ts | 4 ++-- .../slow/ceramic-ceramic-integration.test.ts | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/suite/src/__tests__/fast/update.test.ts b/suite/src/__tests__/fast/update.test.ts index b127bd21..9b4cb1f8 100644 --- a/suite/src/__tests__/fast/update.test.ts +++ b/suite/src/__tests__/fast/update.test.ts @@ -1,4 +1,4 @@ -import { CeramicApi, SyncOptions } from '@ceramicnetwork/common' +import { StreamReaderWriter, SyncOptions } from '@ceramicnetwork/common' import CeramicClient from '@ceramicnetwork/http-client' import { TileDocument } from '@ceramicnetwork/stream-tile' import { afterAll, beforeAll, expect, test, describe } from '@jest/globals' @@ -38,7 +38,7 @@ function testUpdate(composeDbUrls: string[]) { // Create and update on first node test(`create stream on ${firstNodeUrl}`, async () => { firstCeramic = await newCeramic(firstNodeUrl) - firstTile = await TileDocument.create(firstCeramic as CeramicApi, content, metadata, { + firstTile = await TileDocument.create(firstCeramic as StreamReaderWriter, content, metadata, { anchor: false, }) console.log( diff --git a/suite/src/__tests__/slow/ceramic-cas-integration.test.ts b/suite/src/__tests__/slow/ceramic-cas-integration.test.ts index 7604cfd0..47d56754 100644 --- a/suite/src/__tests__/slow/ceramic-cas-integration.test.ts +++ b/suite/src/__tests__/slow/ceramic-cas-integration.test.ts @@ -1,4 +1,4 @@ -import { AnchorStatus, CeramicApi } from '@ceramicnetwork/common' +import { AnchorStatus, StreamReaderWriter } from '@ceramicnetwork/common' import { TileDocument } from '@ceramicnetwork/stream-tile' import { jest, describe, test, beforeAll, expect } from '@jest/globals' import { newCeramic, waitForAnchor } from '../../utils/ceramicHelpers.js' @@ -8,7 +8,7 @@ const ComposeDbUrls = String(process.env.COMPOSEDB_URLS).split(',') // Skipped https://linear.app/3boxlabs/issue/WS1-1460/unskip-ceramic-cas-basic-integration describe.skip('Ceramic<->CAS basic integration', () => { jest.setTimeout(1000 * 60 * 60) // 1 hour - let ceramic: CeramicApi + let ceramic: StreamReaderWriter beforeAll(async () => { ceramic = await newCeramic(ComposeDbUrls[0]) diff --git a/suite/src/__tests__/slow/ceramic-ceramic-integration.test.ts b/suite/src/__tests__/slow/ceramic-ceramic-integration.test.ts index e1d22276..187cef1e 100644 --- a/suite/src/__tests__/slow/ceramic-ceramic-integration.test.ts +++ b/suite/src/__tests__/slow/ceramic-ceramic-integration.test.ts @@ -1,4 +1,4 @@ -import { CeramicApi, StreamUtils } from '@ceramicnetwork/common' +import { StreamReaderWriter, StreamUtils } from '@ceramicnetwork/common' import { TileDocument } from '@ceramicnetwork/stream-tile' import { jest, describe, test, beforeAll, expect } from '@jest/globals' import { newCeramic, waitForAnchor, waitForCondition } from '../../utils/ceramicHelpers.js' @@ -7,8 +7,8 @@ const UPDATE_TIMEOUT = 60 // 60 seconds for regular updates to propagate from on const ComposeDbUrls = String(process.env.COMPOSEDB_URLS).split(',') const createWithOneLoadWithTheOther = async ( - ceramic1: CeramicApi, - ceramic2: CeramicApi, + ceramic1: StreamReaderWriter, + ceramic2: StreamReaderWriter, ): Promise => { const content = { foo: 'bar' } const doc1 = await TileDocument.create(ceramic1, content) @@ -18,8 +18,8 @@ const createWithOneLoadWithTheOther = async ( } const updatesAreShared = async ( - ceramic1: CeramicApi, - ceramic2: CeramicApi, + ceramic1: StreamReaderWriter, + ceramic2: StreamReaderWriter, anchor: boolean, ): Promise => { const content0 = { foo: 0 } @@ -96,8 +96,8 @@ const updatesAreShared = async ( describe.skip('Ceramic<->Ceramic multi-node integration', () => { jest.setTimeout(1000 * 60 * 60) // 1 hour - let ceramic1: CeramicApi - let ceramic2: CeramicApi + let ceramic1: StreamReaderWriter + let ceramic2: StreamReaderWriter beforeAll(async () => { ceramic1 = await newCeramic(ComposeDbUrls[0])