Skip to content

Commit

Permalink
fix: have no end slashes in actor request mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauve Signweaver committed Dec 10, 2024
1 parent d30c1a4 commit 0f3110f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ test('Actor Info Management', async t => {
const mockActorInfo = { name: 'Test Actor', inbox: 'https://test.instance/inbox' }

// Mock Fetch Actor Info
mockSignedFetch.withArgs(`${instance}/v1/testActor/`, sinon.match.any).resolves(new Response(JSON.stringify(mockActorInfo)))
mockSignedFetch.withArgs(`${instance}/v1/testActor`, sinon.match({ method: 'GET' })).resolves(new Response(JSON.stringify(mockActorInfo)))

// Mock Delete Actor
mockSignedFetch.withArgs(`${instance}/v1/testActor/`, sinon.match({ method: 'DELETE' })).resolves(new Response())
mockSignedFetch.withArgs(`${instance}/v1/testActor`, sinon.match({ method: 'DELETE' })).resolves(new Response())

const actorInfo = await client.getActorInfo('testActor')
t.deepEqual(actorInfo, mockActorInfo)
Expand Down

0 comments on commit 0f3110f

Please sign in to comment.