Skip to content

Commit

Permalink
Fix ts errors in shell-api
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Oct 30, 2024
1 parent 4b8a483 commit 3f2c9ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/shell-api/src/field-level-encryption.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/shell-api/src/help.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 3f2c9ce

Please sign in to comment.