Skip to content

Commit

Permalink
fix: switch streamreaderwriter back to ceramic
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Feb 4, 2024
1 parent 85b08b2 commit 3453e44
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/__tests__/indexing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @jest-environment ./build/index.js
*/
import { jest } from '@jest/globals'
import { Page, StreamReaderWriter, StreamState, StreamUtils } from '@ceramicnetwork/common'
import { Page, StreamState, StreamUtils } from '@ceramicnetwork/common'
import { Ceramic } from '@ceramicnetwork/core'
import { CommonTestUtils as TestUtils } from '@ceramicnetwork/common-test-utils'
import { ModelInstanceDocument } from '@ceramicnetwork/stream-model-instance'
Expand All @@ -18,7 +18,7 @@ const DATA2 = { data: 444 }
const DATA3 = { data: 555 }

declare global {
const ceramic: StreamReaderWriter
const ceramic: Ceramic
const ceramicClient: Ceramic
}

Expand Down Expand Up @@ -84,7 +84,7 @@ const waitForMidsToBeIndexed = async (
describe('indexing', () => {
describe('Using existing model', () => {
jest.setTimeout(1000 * 90) // 1 and a half minutes per test
const originalDid = ceramicClient.did as DID
const originalDid = ceramic.did as DID

const singleNodeTestCases: any[] = [['ceramic', ceramic]]
const twoNodesTestCases: any[] = []
Expand All @@ -102,6 +102,7 @@ describe('indexing', () => {
}

afterEach(() => {
ceramic.did = originalDid
ceramicClient.did = originalDid
})

Expand Down

0 comments on commit 3453e44

Please sign in to comment.