File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -197,3 +197,5 @@ httpProxy[Symbol.for('plugin-meta')] = {
197
197
}
198
198
199
199
module . exports = httpProxy
200
+ module . exports . default = httpProxy
201
+ module . exports . fastifyHttpProxy = httpProxy
Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
3
+ const t = require ( 'tap' )
4
+
5
+ const fastifyHttpProxy = require ( '..' )
6
+ const defaultExport = require ( '..' ) . default
7
+ const { fastifyHttpProxy : namedExport } = require ( '..' )
8
+
9
+ t . test ( 'module export' , function ( t ) {
10
+ t . plan ( 1 )
11
+ t . equal ( typeof fastifyHttpProxy , 'function' )
12
+ } )
13
+
14
+ t . test ( 'default export' , function ( t ) {
15
+ t . plan ( 1 )
16
+ t . equal ( typeof defaultExport , 'function' )
17
+ } )
18
+
19
+ t . test ( 'named export' , function ( t ) {
20
+ t . plan ( 1 )
21
+ t . equal ( typeof namedExport , 'function' )
22
+ } )
You can’t perform that action at this time.
0 commit comments