mirror of
https://github.com/hanzoai/protobuf.js.git
synced 2026-09-24 17:02:08 +00:00
15 lines
637 B
JavaScript
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();
|
|
});
|