diff --git a/packages/daf-resolver-universal/src/__tests__/resolver.test.ts b/packages/daf-resolver-universal/src/__tests__/resolver.test.ts index 084ea0ee8..595285ce2 100644 --- a/packages/daf-resolver-universal/src/__tests__/resolver.test.ts +++ b/packages/daf-resolver-universal/src/__tests__/resolver.test.ts @@ -12,13 +12,13 @@ describe('daf-resolver-universal', () => { it('should have resolve method', () => { const resolver = new DafUniversalResolver({ url: 'https://example/' }) - expect(resolver).toHaveProperty('resolve') + expect(resolver).toHaveProperty('resolveDid') }) it('should fetch did doc', async () => { const resolver = new DafUniversalResolver({ url: 'https://example/' }) fetchMock.mockResponse(JSON.stringify({ didDocument: { data: '12345' } })) - const doc = await resolver.resolve('did:example:123') + const doc = await resolver.resolveDid({ didUrl: 'did:example:123' }) expect(doc).toEqual({ data: '12345' }) }) }) diff --git a/packages/daf-resolver/src/__tests__/resolver.test.ts b/packages/daf-resolver/src/__tests__/resolver.test.ts index e4a6f9448..b006d6d4f 100644 --- a/packages/daf-resolver/src/__tests__/resolver.test.ts +++ b/packages/daf-resolver/src/__tests__/resolver.test.ts @@ -9,6 +9,6 @@ describe('daf-resolver', () => { it('should have resolve method', () => { const resolver = new DafResolver({ infuraProjectId: 'xxx' }) - expect(resolver).toHaveProperty('resolve') + expect(resolver).toHaveProperty('resolveDid') }) })