From 45e67bac511ce88877b9c0381796b376290de96a Mon Sep 17 00:00:00 2001 From: John Children Date: Fri, 7 Oct 2016 17:24:29 +0100 Subject: [PATCH] Update protobufjs-tests.ts --- protobufjs/protobufjs-tests.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protobufjs/protobufjs-tests.ts b/protobufjs/protobufjs-tests.ts index fd29685f15..bec806ee0c 100644 --- a/protobufjs/protobufjs-tests.ts +++ b/protobufjs/protobufjs-tests.ts @@ -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) {