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"