mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2026-01-25 16:43:02 +00:00
15 lines
430 B
JavaScript
15 lines
430 B
JavaScript
var tape = require("tape");
|
|
|
|
var protobuf = require("..");
|
|
|
|
tape.test("options in textformat", function(test) {
|
|
|
|
protobuf.load("tests/data/options-textformat.proto", function(err, root) {
|
|
if (err)
|
|
throw err;
|
|
var Test = root.lookup("Test");
|
|
test.same(Test.fields.value.options, { "(my_options).a": "foo", "(my_options).b": "bar" }, "should parse correctly");
|
|
test.end();
|
|
});
|
|
|
|
}); |