fn serialize_response_with_error()

in crates/lsp-client/src/msg.rs [443:456]


    fn serialize_response_with_error() {
        let text = "{\"id\":1,\"error\":{\"code\":-32603,\"message\":\"some error message\"}}";
        let msg = Message::Response(Response {
            id: RequestId::from(1),
            content: ResponseContent::Error(ResponseError {
                code: -32603,
                message: "some error message".to_owned(),
                data: None,
            }),
        });
        let serialized = serde_json::to_string(&msg).unwrap();

        assert_eq!(text, serialized);
    }