@@ -3,8 +3,7 @@ import { ObjectID } from 'mongodb';
33import * as request from 'supertest' ;
44import { testSapi , testUrl } from '../../../spec/helpers/sakuraapi' ;
55import { getAllRouteHandler , getRouteHandler } from '../../handlers' ;
6- import { Db , Json , Model , SapiModelMixin } from '../@model' ;
7- import { Id } from '../@model/id' ;
6+ import { Db , Id , Json , Model , SapiModelMixin } from '../@model' ;
87import { BAD_REQUEST , DUPLICATE_RESOURCE , NOT_FOUND , OK } from '../lib' ;
98import { AuthenticatorPlugin , AuthenticatorPluginResult , IAuthenticator , IAuthenticatorConstructor } from '../plugins' ;
109import { SakuraApi } from '../sakura-api' ;
@@ -683,7 +682,7 @@ describe('core/@Routable', () => {
683682 it ( 'without results' , async ( done ) => {
684683
685684 try {
686- BeforeAfterInjectRouteTestModel . removeAll ( { } ) ;
685+ await BeforeAfterInjectRouteTestModel . removeAll ( { } ) ;
687686 const res = await request ( sapi . app )
688687 . get ( testUrl ( '/GetAllRouteHandlerBeforeAfterTest/beforeTest/get' ) )
689688 . expect ( OK ) ;
@@ -1767,7 +1766,7 @@ describe('core/@Routable', () => {
17671766 const routableSuppressApiTrueTest = new RoutableSuppressApiTrueTest ( ) ;
17681767 expect ( routableSuppressApiTrueTest [ routableSymbols . routes ] . length ) . toBe ( 0 ) ;
17691768
1770- sapi2 . close ( ) ;
1769+ await sapi2 . close ( ) ;
17711770 } ) ;
17721771
17731772 it ( 'suppressess only generated endpoints that are not suppressed' , async ( ) => {
0 commit comments