aboutsummaryrefslogtreecommitdiffhomepage
path: root/js
diff options
context:
space:
mode:
authorGravatar Adam Cozzette <acozzette@google.com>2016-11-18 11:19:30 -0800
committerGravatar Adam Cozzette <acozzette@google.com>2016-11-21 09:08:23 -0800
commit315350b2fa37201851ac298627e5547cfca64798 (patch)
tree01ebad4366802ebe7bf092c9fda7de719965ffe0 /js
parentb4dd686ab484c7e8ab31b8624c4a70ae355fc614 (diff)
Updated message_test.js so that it does not depend on fromObject
Diffstat (limited to 'js')
-rw-r--r--js/message_test.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/js/message_test.js b/js/message_test.js
index 38ed1360..c029a04d 100644
--- a/js/message_test.js
+++ b/js/message_test.js
@@ -1049,13 +1049,7 @@ describe('Message test suite', function() {
var nested = new proto.jspb.test.Deeply.Nested.Message();
nested.setCount(5);
msg.setDeeplyNestedMessage(nested);
-
- // After a serialization-deserialization round trip we should get back the
- // same data we started with.
- var serialized = msg.toObject();
- var deserialized =
- proto.jspb.test.ForeignNestedFieldMessage.fromObject(serialized);
- assertEquals(5, deserialized.getDeeplyNestedMessage().getCount());
+ assertEquals(5, msg.getDeeplyNestedMessage().getCount());
});
});