Files
protobuf.js/tests/comp_whitespace-in-type.js

15 lines
637 B
JavaScript

var tape = require("tape");
var protobuf = require("..");
tape.test("parsing line breaks", function (test) {
test.test(test.name + " - field options (Int)", function (test) {
var root = protobuf.loadSync("tests/data/whitespace-in-type.proto");
var message = root.lookupType('some.really.long.name.which.does.not.really.make.any.sense.but.sometimes.we.still.see.stuff.like.this.WouldYouParseThisForMePlease');
test.equal(message.fields.field.type, 'some.really.long.name.which.does.not.really.make.any.sense.but.sometimes.we.still.see.stuff.like.this.Test');
test.end();
});
test.end();
});