Skip to content

Commit 3a56d83

Browse files
committed
fix: use correct Sinon import to resolve TS2686 error in sdk.test.ts
1 parent c54802c commit 3a56d83

File tree

1 file changed

+4
-4
lines changed
  • experimental/packages/opentelemetry-sdk-node/test

1 file changed

+4
-4
lines changed

experimental/packages/opentelemetry-sdk-node/test/sdk.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ describe('Node SDK', () => {
396396
sdk.start();
397397

398398
// Verify deprecation warning was shown
399-
sinon.assert.calledWith(
399+
Sinon.assert.calledWith(
400400
warnSpy,
401401
"The 'metricReader' option is deprecated. Please use 'metricReaders' instead."
402402
);
@@ -428,7 +428,7 @@ describe('Node SDK', () => {
428428
sdk.start();
429429

430430
// Verify no metricReader deprecation warning was shown
431-
sinon.assert.neverCalledWith(
431+
Sinon.assert.neverCalledWith(
432432
warnSpy,
433433
"The 'metricReader' option is deprecated. Please use 'metricReaders' instead."
434434
);
@@ -734,15 +734,15 @@ describe('Node SDK', () => {
734734
// Local functions to test if a mocked method is ever called with a specific argument or regex matching for an argument.
735735
// Needed because of race condition with parallel detectors.
736736
const callArgsContains = (
737-
mockedFunction: sinon.SinonSpy,
737+
mockedFunction: Sinon.SinonSpy,
738738
arg: any
739739
): boolean => {
740740
return mockedFunction.getCalls().some(call => {
741741
return call.args.some(callarg => arg === callarg);
742742
});
743743
};
744744
const callArgsMatches = (
745-
mockedFunction: sinon.SinonSpy,
745+
mockedFunction: Sinon.SinonSpy,
746746
regex: RegExp
747747
): boolean => {
748748
return mockedFunction.getCalls().some(call => {

0 commit comments

Comments
 (0)