From 3f2c9ceeefe49551585cc8624e6f64cfaf94b83b Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Wed, 30 Oct 2024 17:44:51 +0100 Subject: [PATCH] Fix ts errors in shell-api --- packages/shell-api/src/field-level-encryption.spec.ts | 2 +- packages/shell-api/src/help.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shell-api/src/field-level-encryption.spec.ts b/packages/shell-api/src/field-level-encryption.spec.ts index 6225a036e..9fab4b624 100644 --- a/packages/shell-api/src/field-level-encryption.spec.ts +++ b/packages/shell-api/src/field-level-encryption.spec.ts @@ -778,7 +778,7 @@ describe('Field Level Encryption', function () { sinon.replace( require('tls'), 'connect', - sinon.fake((options, onConnect) => { + sinon.fake((options: any, onConnect: Function) => { if (options.host === 'kmip.example.com') { // KMIP is not http(s)-based, we don't implement strong fakes for it // and instead only verify that a connection has occurred. diff --git a/packages/shell-api/src/help.spec.ts b/packages/shell-api/src/help.spec.ts index 86b032f40..bb78a62ca 100644 --- a/packages/shell-api/src/help.spec.ts +++ b/packages/shell-api/src/help.spec.ts @@ -7,7 +7,7 @@ describe('Help', function () { let translate: (str: string) => string; beforeEach(function () { - translate = sinon.fake((x) => `translated: ${x}`); + translate = sinon.fake((x: string) => `translated: ${x}`); }); describe('#toShellResult', function () {