diff --git a/src/express/ExpressProvider.ts b/src/express/ExpressProvider.ts index 8d7aa29c..4505d6d6 100644 --- a/src/express/ExpressProvider.ts +++ b/src/express/ExpressProvider.ts @@ -35,7 +35,7 @@ export class ExpressProvider implements AppProvider { this.app.set('trust proxy', ['loopback', 'linklocal', 'uniquelocal']); } - private static handle = (endpoint: Endpoint, options: VerbOptions): RequestHandler => (req: Request, res: Response, next: NextFunction) => + protected static handle = (endpoint: Endpoint, options: VerbOptions): RequestHandler => (req: Request, res: Response, next: NextFunction) => endpoint(toReq(req)) .then((r: any) => toResponse(res, r, options)) .catch(error => next(toOriginatedError(error, options))); diff --git a/test/mongo/MongoProvider.test.ts b/test/mongo/MongoProvider.test.ts index 494badbd..2b2066b3 100644 --- a/test/mongo/MongoProvider.test.ts +++ b/test/mongo/MongoProvider.test.ts @@ -51,7 +51,7 @@ describe('MongoProvider', () => { provider.collection = mock.resolve(c); const res = await provider.by('level', 1); expect(res.last()).toMatchObject(devData.wouter); - expect(c.find).toHaveBeenCalledWith({ level: "1" }, { limit: 250 }); + expect(c.find).toHaveBeenCalledWith({ level: '1' }, { limit: 250 }); }); test('add calls insertOne on the collection', async () => { diff --git a/test/types/Is.test.ts b/test/types/Is.test.ts index 63c1b88e..b831af37 100644 --- a/test/types/Is.test.ts +++ b/test/types/Is.test.ts @@ -1,17 +1,4 @@ -import { - Entity, - isArray, - isBoolean, - isDefined, - isEmpty, - isEmptyObject, - isInstance, - isNotEmpty, - isNumber, - isObject, - isPrimitive, - isString, -} from '../../src'; +import { Entity, isArray, isBoolean, isDefined, isEmpty, isEmptyObject, isInstance, isNotEmpty, isNumber, isObject, isPrimitive, isString } from '../../src'; import { Dev } from '../ref'; describe('isDefined', () => { diff --git a/test/validation/Validate.test.ts b/test/validation/Validate.test.ts index 98b06399..115ef21a 100644 --- a/test/validation/Validate.test.ts +++ b/test/validation/Validate.test.ts @@ -1,17 +1,4 @@ -import { - asList, - Entity, - Enum, - includes, - List, - required, - rule, - Struct, - toList, - valid, - validate, - Value, -} from '../../src'; +import { asList, Entity, Enum, includes, List, required, rule, Struct, toList, valid, validate, Value } from '../../src'; import '@thisisagile/easy-test'; import { Dev } from '../ref';