UNPKG

protobufjs

Version:

Protocol Buffers for JavaScript.

16 lines (10 loc) 344 B
var tape = require("tape"); var protobuf = require(".."); tape.test("jspb test.proto", function(test) { protobuf.load("tests/data/test.proto", function(err, root) { if (err) return test.fail(err.message); test.ok(true, "should parse without errors"); test.end(); }); });