<commit_before>import {expect} from 'chai'
import {it} from 'ember-mocha'
import {describe} from 'mocha'
import {generateToken} from 'webdriverio-server/app/utils/generateToken'

describe('Generate Token', function () {
  describe('General Case', function () {
    it('should generate a 30 character length token', function () {
      const token = generateToken(30)
      expect(token.length).to.equal(30)
    })
  })

  describe('Edge Cases', function () {
    it('should generate an error if passed not a number', function () {
      expect(generateToken('test')).to.throw()
    })

    it('should generate an error if passed a number less than 0', function () {
      expect(generateToken(-1)).to.throw()
    })
  })
})<commit_msg>Potential fix to generate token test<commit_after>import {expect} from 'chai'
import {it} from 'ember-mocha'
import {describe} from 'mocha'
import {generateToken} from 'webdriverio-server/utils/generateToken'

describe('Generate Token', function () {
  describe('General Case', function () {
    it('should generate a 30 character length token', function () {
      const token = generateToken(30)
      expect(token.length).to.equal(30)
    })
  })

  describe('Edge Cases', function () {
    it('should generate an error if passed not a number', function () {
      expect(generateToken('test')).to.throw()
    })

    it('should generate an error if passed a number less than 0', function () {
      expect(generateToken(-1)).to.throw()
    })
  })
})
{'fraction_non_alphanumeric': 0.1430490261920752, 'fraction_numerical': 0.010745466756212223, 'mean_word_length': 3.8534201954397393, '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': '918471', 'n_tokens_mistral': 446, 'n_tokens_neox': 422, 'n_words': 127}