File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 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 >
2
2
<p align =" center " >
3
3
<a href="https://travis-ci.org/dcodeIO/protobuf.js"><img src="https://travis-ci.org/dcodeIO/protobuf.js.svg?branch=master" alt=""></a>
4
4
<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>
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ tape.test("converters", function(test) {
149
149
var msg = Message . fromObject ( obj ) ;
150
150
151
151
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" ) ;
152
153
153
154
var buf = protobuf . util . newBuffer ( 3 ) ;
154
155
buf [ 0 ] = buf [ 1 ] = buf [ 2 ] = 49 ; // "111"
You can’t perform that action at this time.
0 commit comments