import mm from 'egg-mock' ; import * as assert from 'assert' ; describe ( 'openapi' , ( ) => { let app ; before ( ( ) => { app = mm . app ( { baseDir : 'openapi' , plugin : 'controller' , } as any ) ; return app . ready ( ) ; } ) ; after ( ( ) => app . close ( ) ) ; afterEach ( mm . restore ) ; it ( 'normal' , ( ) => { assert . deepEqual ( require ( './fixtures/openapi/run/openapi_3.json' ) , require ( './fixtures/openapi/example.json' ) ) ; } ) ; } ) ;