<commit_before>import { ListStreamKeyItems } from '../../src/Commands'
import { TestCommand } from '../test-helpers'

describe('/ListStreamKeyItems()', function() {
  it(
    'should return a properly configured JSON-RPC request for the liststreamkeyitems API command',
  )
})<commit_msg>Adds unit test for the ListStreamItems command.<commit_after>import { ListStreamKeyItems } from '../../src/Commands'
import { TestCommand } from '../test-helpers'

describe('/ListStreamKeyItems()', function() {
  it(
    'should return a properly configured JSON-RPC request for the liststreamkeyitems API command',
    function() {
      const stream = 'stream'
      const key = 'key'
      const verbose = true
      const count = 10
      const start = 0
      const localOrdering = false

      // Signature 1: [string, string]
      TestCommand(
        ListStreamKeyItems(stream, key),
        ListStreamKeyItems,
        [stream, key],
      )

      // Signature 2: [string, string, boolean]
      TestCommand(
        ListStreamKeyItems(stream, key, verbose),
        ListStreamKeyItems,
        [stream, key, verbose],
      )

      // Signature 3: [string, string, boolean, number]
      TestCommand(
        ListStreamKeyItems(stream, key, verbose, count),
        ListStreamKeyItems,
        [stream, key, verbose, count],
      )

      // Signature 4: [string, string, boolean, number, number]
      TestCommand(
        ListStreamKeyItems(stream, key, verbose, count, start),
        ListStreamKeyItems,
        [stream, key, verbose, count, start],
      )

      // Signature 5: [string, string, boolean, number, number, boolean]
      TestCommand(
        ListStreamKeyItems(stream, key, verbose, count, start, localOrdering),
        ListStreamKeyItems,
        [stream, key, verbose, count, start, localOrdering],
      )
    },
  )
})
{'fraction_non_alphanumeric': 0.1143011917659805, 'fraction_numerical': 0.004333694474539545, 'mean_word_length': 2.723790322580645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '652918', 'n_tokens_mistral': 525, 'n_tokens_neox': 503, 'n_words': 151}