import { Dino , express } from './index' ; import bodyParser = require ( 'body-parser' ) ; import { Express } from 'express' ; export interface InitTest { app : Express ; dino : Dino ; } export function initializeTests ( ) { const app = express ( ) ; const dino = new Dino ( app , '/api' ) ; app . use ( bodyParser . json ( ) ) ; dino . useRouter ( ( ) => express . Router ( ) ) ; return { app : app , dino : dino } ; }