Skip to content

Commit 12bdbf9

Browse files
authored
Fix react-openapi tests (#2956)
1 parent 29bab79 commit 12bdbf9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-openapi/src/resolveOpenAPIOperation.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ describe('#resolveOpenAPIOperation', () => {
8080
it('should resolve circular refs', async () => {
8181
const filesystem = await fetchFilesystem('https://api.gitbook.com/openapi.json');
8282
const resolved = await resolveOpenAPIOperation(filesystem, {
83-
method: 'post',
84-
path: '/search/ask',
83+
method: 'get',
84+
path: '/spaces/{spaceId}/content/page/{pageId}',
8585
});
8686

8787
expect(resolved).toMatchObject({
@@ -91,7 +91,7 @@ describe('#resolveOpenAPIOperation', () => {
9191
},
9292
],
9393
operation: {
94-
operationId: 'askQuery',
94+
operationId: 'getPageById',
9595
},
9696
});
9797
});

0 commit comments

Comments
 (0)