Skip to content

Commit

Permalink
Other: Added a test case for #652; Docs: Fixed centered formatting on…
Browse files Browse the repository at this point in the history
… npm
  • Loading branch information
dcodeIO committed Jan 19, 2017
1 parent 4c16f4e commit 6f0b44a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 align="center"><img alt="protobuf.js" src="https://github.com/dcodeIO/protobuf.js/raw/master/pbjs.png" width="120" height="104" /></h1>
<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>
<p align="center">
<a href="https://travis-ci.org/dcodeIO/protobuf.js"><img src="https://travis-ci.org/dcodeIO/protobuf.js.svg?branch=master" alt=""></a>
<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>
Expand Down
1 change: 1 addition & 0 deletions tests/api_converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6f0b44a

Please sign in to comment.