File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ exports.RecordCreator = Interface.RecordCreator;
2323exports . RecordRemover = Interface . RecordRemover ;
2424exports . RecordsRemover = Interface . RecordsRemover ;
2525exports . RecordSerializer = Interface . RecordSerializer ;
26+ exports . requestUnflattener = Flattener . requestUnflattener ;
2627
2728exports . PUBLIC_ROUTES = Interface . PUBLIC_ROUTES ;
2829
Original file line number Diff line number Diff line change @@ -2,6 +2,13 @@ const forestExpressMongoose = require('../../src/index');
22
33describe ( 'index' , ( ) => {
44 describe ( 'exported Interface' , ( ) => {
5+ it ( 'should export the request unflattener' , ( ) => {
6+ expect . assertions ( 2 ) ;
7+
8+ expect ( forestExpressMongoose . requestUnflattener ) . toBeDefined ( ) ;
9+ expect ( forestExpressMongoose . requestUnflattener ) . toBeInstanceOf ( Function ) ;
10+ } ) ;
11+
512 it ( 'should export a collection function' , ( ) => {
613 expect . assertions ( 2 ) ;
714
Original file line number Diff line number Diff line change @@ -332,3 +332,5 @@ export interface CollectionOptions {
332332export function collection ( name : string , options : CollectionOptions ) : void ;
333333
334334export function errorHandler ( ) : RequestHandler ;
335+
336+ export function requestUnflattener ( ) : RequestHandler ;
You can’t perform that action at this time.
0 commit comments