From 6d2fad00eef8b9dcc4b14e9e62d910d024c794fe Mon Sep 17 00:00:00 2001 From: Matthew Wear Date: Wed, 26 Feb 2020 00:07:29 -0800 Subject: [PATCH] fix: test issues --- .../opentelemetry-resources/test/util/resource-assertions.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/opentelemetry-resources/test/util/resource-assertions.ts b/packages/opentelemetry-resources/test/util/resource-assertions.ts index 56b13717352..554c1d3da79 100644 --- a/packages/opentelemetry-resources/test/util/resource-assertions.ts +++ b/packages/opentelemetry-resources/test/util/resource-assertions.ts @@ -14,7 +14,6 @@ * limitations under the License. */ -import * as assert from 'assert'; import { Resource } from '../../src/Resource'; import { CLOUD_RESOURCE, @@ -248,7 +247,7 @@ const assertHasOneLabel = ( resource: Resource ): void => { const hasOne = Object.values(constants).reduce( - (found, key) => found || resource.labels[key], + (found, key) => found || resource.labels.hasOwnProperty(key), false ); assert.ok(