mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2026-01-18 16:14:40 +00:00
25 lines
608 B
JavaScript
25 lines
608 B
JavaScript
var tape = require("tape");
|
|
|
|
var protobuf = require("..");
|
|
|
|
tape.test("common types", function(test) {
|
|
|
|
protobuf.common("google/protobuf/foo.proto", {
|
|
nested: {
|
|
google: {
|
|
nested: {
|
|
protobuf: {
|
|
nested: {
|
|
Foo: {
|
|
fields: {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
test.ok(protobuf.common["google/protobuf/foo.proto"], "should expose custom definitions");
|
|
test.end();
|
|
}); |