Skip to content

Commit 6f0b44a

Browse files
committed
Other: Added a test case for #652; Docs: Fixed centered formatting on npm
1 parent 4c16f4e commit 6f0b44a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 align="center"><img alt="protobuf.js" src="https://github.com/dcodeIO/protobuf.js/raw/master/pbjs.png" width="120" height="104" /></h1>
1+
<h1><p align="center"><img alt="protobuf.js" src="https://github.com/dcodeIO/protobuf.js/raw/master/pbjs.png" width="120" height="104" /></p></h1>
22
<p align="center">
33
<a href="https://travis-ci.org/dcodeIO/protobuf.js"><img src="https://travis-ci.org/dcodeIO/protobuf.js.svg?branch=master" alt=""></a>
44
<a href="https://coveralls.io/github/dcodeIO/protobuf.js"><img src="https://coveralls.io/repos/github/dcodeIO/protobuf.js/badge.svg?branch=master" alt=""></a>

tests/api_converters.js

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ tape.test("converters", function(test) {
149149
var msg = Message.fromObject(obj);
150150

151151
test.same(Message.ctor.fromObject(obj), msg, "should convert the same using the static and the instance method");
152+
test.equal(Message.fromObject(msg), msg, "should just return the object if already a runtime message");
152153

153154
var buf = protobuf.util.newBuffer(3);
154155
buf[0] = buf[1] = buf[2] = 49; // "111"

0 commit comments

Comments
 (0)