File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const REGEX_VERSION = /(\d+\.)?(\d+\.)?(\*|\d+)/;
3131
3232exports . collection = Interface . collection ;
3333exports . ensureAuthenticated = Interface . ensureAuthenticated ;
34+ exports . errorHandler = ( ) => Interface . errorHandler ( { logger : Interface . logger } ) ;
3435exports . StatSerializer = Interface . StatSerializer ;
3536exports . ResourceSerializer = Interface . ResourceSerializer ;
3637exports . ResourceDeserializer = Interface . ResourceDeserializer ;
Original file line number Diff line number Diff line change @@ -9,6 +9,13 @@ describe('index', () => {
99 expect ( forestExpressSequelize . collection ) . toBeInstanceOf ( Function ) ;
1010 } ) ;
1111
12+ it ( 'should export an errorHandler middleware' , ( ) => {
13+ expect . assertions ( 2 ) ;
14+
15+ expect ( forestExpressSequelize . errorHandler ) . toBeDefined ( ) ;
16+ expect ( forestExpressSequelize . errorHandler ) . toBeInstanceOf ( Function ) ;
17+ } ) ;
18+
1219 it ( 'should export an ensureAuthenticated middleware' , ( ) => {
1320 expect . assertions ( 2 ) ;
1421
You can’t perform that action at this time.
0 commit comments