File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,21 @@ export class TestCore implements Core {
1515 JSON . stringify ( config . invocation . parameters . parameters ) )
1616 }
1717
18- async initClient ( config : ClientAuthConfig ) : Promise < string > {
18+ async initClient ( config : string ) : Promise < string > {
1919 const res = this . id . toString ( ) ;
2020 this . id ++ ;
2121 return res ;
2222 }
2323
24- async invoke ( config : InvokeConfig ) : Promise < string > {
24+ async invoke ( config : string ) : Promise < string > {
25+ const parsedConfig : InvokeConfig = JSON . parse ( config ) ;
2526 return JSON . stringify ( "method " +
26- config . invocation . parameters . name +
27+ parsedConfig . invocation . parameters . name +
2728 " called on client " +
28- config . invocation . clientId +
29+ parsedConfig . invocation . clientId +
2930 " with parameters " +
30- JSON . stringify ( config . invocation . parameters . parameters ) )
31+ JSON . stringify ( parsedConfig . invocation . parameters . parameters ) )
3132 }
3233
33- async releaseClient ( clientId : number ) { }
34+ async releaseClient ( clientId : string ) { }
3435}
You can’t perform that action at this time.
0 commit comments