Skip to content

Commit b10bcb7

Browse files
committed
fix: test issues
1 parent 2274625 commit b10bcb7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/opentelemetry-resources/test/resource-assertions.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
import * as assert from 'assert';
1817
import { Resource } from '../src/Resource';
1918
import {
2019
CLOUD_RESOURCE,

packages/opentelemetry-resources/test/util/resource-assertions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ const assertHasOneLabel = (
248248
resource: Resource
249249
): void => {
250250
const hasOne = Object.values(constants).reduce(
251-
(found, key) => found || resource.labels[key],
251+
(found, key) => found || resource.labels.hasOwnProperty(key),
252252
false
253253
);
254254
assert.ok(

0 commit comments

Comments
 (0)