mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 18:43:29 +00:00
Fix react-openapi tests (#2956)
This commit is contained in:
@@ -80,8 +80,8 @@ describe('#resolveOpenAPIOperation', () => {
|
||||
it('should resolve circular refs', async () => {
|
||||
const filesystem = await fetchFilesystem('https://api.gitbook.com/openapi.json');
|
||||
const resolved = await resolveOpenAPIOperation(filesystem, {
|
||||
method: 'post',
|
||||
path: '/search/ask',
|
||||
method: 'get',
|
||||
path: '/spaces/{spaceId}/content/page/{pageId}',
|
||||
});
|
||||
|
||||
expect(resolved).toMatchObject({
|
||||
@@ -91,7 +91,7 @@ describe('#resolveOpenAPIOperation', () => {
|
||||
},
|
||||
],
|
||||
operation: {
|
||||
operationId: 'askQuery',
|
||||
operationId: 'getPageById',
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user