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 () {