MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / st

Function st

src/__tests__/lib/command/output.test.ts:67–67  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

65
66 it('sorts in a case insensitive manner', () => {
67 const st = (str: string): SimpleType => ({ str, num: 1 })
68 const input: SimpleType[] = [ st('xyz'), st('abc'), st('ABC'), st('this'), st('that') ]
69 const result = sort(input, 'str')
70 expect(result).toEqual([st('abc'), st('ABC'), st('that'), st('this'), st('xyz')])

Callers 1

output.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected