From 6f0b44aea6cf72d23042810f05a7cede85239eb3 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Thu, 19 Jan 2017 23:37:14 +0100 Subject: [PATCH] Other: Added a test case for #652; Docs: Fixed centered formatting on npm --- README.md | 2 +- tests/api_converters.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bf73ba29..e639e5d2d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

protobuf.js

+

protobuf.js

diff --git a/tests/api_converters.js b/tests/api_converters.js index b214662c0..86f7480ca 100644 --- a/tests/api_converters.js +++ b/tests/api_converters.js @@ -149,6 +149,7 @@ tape.test("converters", function(test) { var msg = Message.fromObject(obj); test.same(Message.ctor.fromObject(obj), msg, "should convert the same using the static and the instance method"); + test.equal(Message.fromObject(msg), msg, "should just return the object if already a runtime message"); var buf = protobuf.util.newBuffer(3); buf[0] = buf[1] = buf[2] = 49; // "111"