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(