diff options
Diffstat (limited to 'rpc/testdata/reqresp-namedparam.js')
-rw-r--r-- | rpc/testdata/reqresp-namedparam.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rpc/testdata/reqresp-namedparam.js b/rpc/testdata/reqresp-namedparam.js new file mode 100644 index 000000000..9a9372b0a --- /dev/null +++ b/rpc/testdata/reqresp-namedparam.js @@ -0,0 +1,5 @@ +// This test checks that an error response is sent for calls +// with named parameters. + +--> {"jsonrpc":"2.0","method":"test_echo","params":{"int":23},"id":3} +<-- {"jsonrpc":"2.0","id":3,"error":{"code":-32602,"message":"non-array args"}} |