@@ -23,7 +23,6 @@ import {
2323 FAKE_CID_3 ,
2424 FAKE_CID_4 ,
2525 JWS_VERSION_1 ,
26- NO_DID_SIGNER ,
2726 RotatingSigner ,
2827} from '@ceramicnetwork/did-test-utils'
2928import { CommonTestUtils as TestUtils } from '@ceramicnetwork/common-test-utils'
@@ -59,7 +58,7 @@ jest.unstable_mockModule('did-jwt', () => {
5958// These tests are never expected to be run in v4 mode
6059const describeIfV3 = process . env . CERAMIC_RECON_MODE ? describe . skip : describe
6160
62- describeIfV3 ( 'TileDocumentHandler' , ( ) => {
61+ describe ( 'TileDocumentHandler' , ( ) => {
6362 let tileDocumentHandler : TileDocumentHandler
6463 let context : StreamReaderWriter
6564 let defaultSigner : RotatingSigner
@@ -210,7 +209,7 @@ describeIfV3('TileDocumentHandler', () => {
210209
211210 it ( 'creates genesis commits without DID if content is undefined' , async ( ) => {
212211 await expect (
213- TileDocument . makeGenesis ( NO_DID_SIGNER , { foo : 'asdf' } , { controllers : [ DID_ID ] } )
212+ TileDocument . makeGenesis ( CeramicSigner . invalid ( ) , { foo : 'asdf' } , { controllers : [ DID_ID ] } )
214213 ) . rejects . toThrow ( 'No DID' )
215214 const commit1 = await TileDocument . makeGenesis ( { } as CeramicSigner , null , {
216215 controllers : [ DID_ID ] ,
@@ -259,13 +258,15 @@ describeIfV3('TileDocumentHandler', () => {
259258 const state$ = TestUtils . runningState ( state )
260259 const doc = new TileDocument ( state$ , context )
261260
262- await expect ( doc . makeCommit ( NO_DID_SIGNER , COMMITS . r1 . desiredContent ) ) . rejects . toThrow ( / N o D I D / )
261+ await expect ( doc . makeCommit ( CeramicSigner . invalid ( ) , COMMITS . r1 . desiredContent ) ) . rejects . toThrow ( / N o D I D / )
263262
264263 const commit = ( await doc . makeCommit (
265264 context . signer ,
266265 COMMITS . r1 . desiredContent
267266 ) ) as SignedCommitContainer
268267 const { jws : rJws , linkedBlock : rLinkedBlock } = commit
268+ //since we're mocking library calls, we're missing this. Adding it to make test match
269+ rJws . link = 'bafyreia6chsgnfihmdrl2d36llrfevc6xgmgzryi3ittdg3j5ohdifb7he'
269270 const rPayload = dagCBOR . decode ( rLinkedBlock )
270271 expect ( {
271272 jws : DidTestUtils . serialize ( rJws ) ,
0 commit comments