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

Function lineCount

src/__tests__/lib/table-generator.test.ts:52–52  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

50
51const lineCount = (input: string): number =>(input.match(/\n/g) ?? []).length
52
53expect.extend({
54 toHaveLabel(received: string, label: string) {
55 const stripped = stripEscapeSequences(received)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected