11import { jest } from '@jest/globals'
22
3- import { osLocale } from 'os-locale'
3+ import type { osLocale } from 'os-locale'
44
5- import {
5+ import type {
66 Authenticator ,
77 Logger ,
88 RESTClientConfig ,
99 SmartThingsClient ,
1010 WarningFromHeader ,
1111} from '@smartthings/core-sdk'
1212
13- import {
13+ import type {
1414 SmartThingsCommand ,
1515 SmartThingsCommandFlags ,
1616 smartThingsCommand ,
1717 smartThingsCommandBuilder ,
1818} from '../../../lib/command/smartthings-command.js'
19- import { newBearerTokenAuthenticator , newSmartThingsClient } from '../../../lib/command/util/st-client-wrapper.js'
20- import { coreSDKLoggerFromLog4JSLogger } from '../../../lib/log-utils.js'
21- import { defaultClientIdProvider , loginAuthenticator } from '../../../lib/login-authenticator.js'
22- import { TableGenerator } from '../../../lib/table-generator.js'
19+ import type { newBearerTokenAuthenticator , newSmartThingsClient } from '../../../lib/command/util/st-client-wrapper.js'
20+ import type { coreSDKLoggerFromLog4JSLogger } from '../../../lib/log-utils.js'
21+ import { defaultClientIdProvider , type loginAuthenticator } from '../../../lib/login-authenticator.js'
22+ import type { TableGenerator } from '../../../lib/table-generator.js'
2323import { buildArgvMock } from '../../test-lib/builder-mock.js'
24- import { CLIConfig } from '../../../lib/cli-config.js'
24+ import type { CLIConfig } from '../../../lib/cli-config.js'
2525
2626
2727const { errorMock, loggerMock } = await import ( '../../test-lib/logger-mock.js' )
@@ -92,7 +92,6 @@ const {
9292 apiCommand,
9393 apiCommandBuilder,
9494 apiDocsURL,
95- itemInputHelpText,
9695 userAgent,
9796} = await import ( '../../../lib/command/api-command.js' )
9897
@@ -112,21 +111,6 @@ describe('apiDocsURL', () => {
112111 } )
113112} )
114113
115- describe ( 'itemInputHelpText' , ( ) => {
116- it ( 'works with external URLs' , ( ) => {
117- expect ( itemInputHelpText ( 'https://adafruit.com' , 'https://digikey.com' ) )
118- . toBe ( 'More information can be found at:\n' +
119- ' https://adafruit.com\n' +
120- ' https://digikey.com' )
121- } )
122-
123- it ( 'builds URLs like `apiDocsURL`' , ( ) => {
124- expect ( itemInputHelpText ( 'getDevice' ) )
125- . toBe ( 'More information can be found at:\n' +
126- ' https://developer.smartthings.com/docs/api/public/#operation/getDevice' )
127- } )
128- } )
129-
130114test ( 'apiCommandBuilder' , ( ) => {
131115 const { optionMock, argvMock } = buildArgvMock < SmartThingsCommandFlags > ( )
132116 smartThingsCommandBuilderMock . mockReturnValueOnce ( argvMock )
0 commit comments