<commit_before><commit_msg>Add IsString Test<commit_after>const { expect } = require('chai')
const { isString } = require('../index')

describe('isString', () => {
  it('should return true when a String is passed as argument', () => {
      expect(isString('')).to.be.true
  })

  it('should return false when an Array is passed as argument', () => {
      expect(isString([])).to.be.false
  })

  it('should return false when a Null is passed as argument', () => {
      expect(isString(null)).to.be.false
  })

  it('should return false when a Number is passed as argument', () => {
      expect(isString(1)).to.be.false
  })

  it('should return false when an Undefined is passed as argument', () => {
      expect(isString(undefined)).to.be.false
  })

  it('should return false when an Object is passed as argument', () => {
      expect(isString({})).to.be.false
  })
})
{'fraction_non_alphanumeric': 0.1689497716894977, 'fraction_numerical': 0.001141552511415525, 'mean_word_length': 3.4744897959183674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '2317986', 'n_tokens_mistral': 268, 'n_tokens_neox': 263, 'n_words': 75}