1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` client generateClient should support cross croject invocation 1` ] = `
4
- "import { createRequest } from '@modern-js/plugin-bff/runtime/create-request ';
4
+ "import { createRequest } from '@modern-js/plugin-bff/client ';
5
5
6
- export var DELETE = createRequest({ path : ' /normal/origin' ,method : ' DELETE' ,port : 3000 ,httpMethodDecider : ' functionName' , requestId : ' tests ' } );
7
- export default createRequest({ path : ' /normal/origin' ,method : ' GET' ,port : 3000 ,httpMethodDecider : ' functionName' , requestId : ' tests ' } );
8
- export var putRepo = createRequest({ path : ' /put-repo' ,method : ' PUT' ,port : 3000 ,httpMethodDecider : ' functionName' , requestId : ' tests ' } );
6
+ export var DELETE = createRequest({ path : ' /normal/origin' ,method : ' DELETE' ,port : 3000 ,httpMethodDecider : ' functionName' , requestId : ' @modern-js/bff-core ' } );
7
+ export default createRequest({ path : ' /normal/origin' ,method : ' GET' ,port : 3000 ,httpMethodDecider : ' functionName' , requestId : ' @modern-js/bff-core ' } );
8
+ export var putRepo = createRequest({ path : ' /put-repo' ,method : ' PUT' ,port : 3000 ,httpMethodDecider : ' functionName' , requestId : ' @modern-js/bff-core ' } );
9
9
"
10
10
` ;
11
11
12
12
exports [` client generateClient should support operator 1` ] = `
13
- "import { createRequest } from '@modern-js/plugin-bff/runtime/create-request ';
13
+ "import { createRequest } from '@modern-js/plugin-bff/client ';
14
14
15
15
export var DELETE = createRequest({ path : ' /normal/origin' ,method : ' DELETE' ,port : 3000 ,httpMethodDecider : ' functionName' } );
16
16
export default createRequest({ path : ' /normal/origin' ,method : ' GET' ,port : 3000 ,httpMethodDecider : ' functionName' } );
@@ -19,7 +19,7 @@ export var DELETE = createRequest({path: '/normal/origin',method: 'DELETE',port:
19
19
` ;
20
20
21
21
exports [` client generateClient should works correctly 1` ] = `
22
- "import { createRequest } from '@modern-js/plugin-bff/runtime/create-request ';
22
+ "import { createRequest } from '@modern-js/plugin-bff/client ';
23
23
24
24
export var get = createRequest({ path : ' /api/:id/origin/foo' ,method : ' GET' ,port : 3000 ,httpMethodDecider : ' functionName' } );
25
25
export var post = createRequest({ path : ' /api/:id/origin/foo' ,method : ' POST' ,port : 3000 ,httpMethodDecider : ' functionName' } );
0 commit comments