@@ -377,7 +377,7 @@ describe('Convertor', () => {
377377
378378 describe ( 'convert a schema with null types' , ( ) => {
379379 it ( 'should return a schema valid for OpenAPI v3.0.0' , async function ( ) {
380- const complexConvertor = new Convertor ( complexTypeArraySchema )
380+ const complexConvertor = new Convertor ( complexNullTypeSchema )
381381 const components = complexConvertor . convert ( )
382382 const cloned = JSON . parse ( JSON . stringify ( simpleOpenAPI ) )
383383 let valid = await validator . validateInner ( cloned , { } )
@@ -397,8 +397,9 @@ describe('Convertor', () => {
397397
398398 describe ( 'convert a schema with types that are an array' , ( ) => {
399399 it ( 'should return a schema valid for OpenAPI v3.0.0' , async function ( ) {
400- const complexConvertor = new Convertor ( complexNullTypeSchema )
400+ const complexConvertor = new Convertor ( complexTypeArraySchema )
401401 const components = complexConvertor . convert ( )
402+
402403 const cloned = JSON . parse ( JSON . stringify ( simpleOpenAPI ) )
403404 let valid = await validator . validateInner ( cloned , { } )
404405 expect ( valid ) . to . be . true
@@ -417,6 +418,7 @@ describe('Convertor', () => {
417418
418419 describe ( 'use a repo with lots of schemas to find failing ones' , ( ) => {
419420 xit ( 'should convert all schemas successfully' , async function ( ) {
421+ this . timeout ( 5000 ) ;
420422 const bannedSchemas = [ ]
421423
422424 const url = `https://api.github.com/repos/SchemaStore/schemastore/contents/src/schemas/json` ;
0 commit comments