mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Update protobufjs-tests.ts
This commit is contained in:
@@ -180,7 +180,9 @@ function assertIsProtoEnum(pe: ProtoBuf.ProtoEnum, name: string) {
|
||||
assert.ok("values" in pe, name + " should contain property values");
|
||||
assert.ok("options" in pe, name + " should contain property options");
|
||||
|
||||
assertIsProtoEnumValue(pe.values, name + ".values");
|
||||
for (var value in pe.values) {
|
||||
assertIsProtoEnumValue(pe.values[value], name + ".values." + value);
|
||||
}
|
||||
}
|
||||
|
||||
function assertIsProtoEnumValue(pev: ProtoBuf.ProtoEnumValue, name: string) {
|
||||
|
||||
Reference in New Issue
Block a user