<commit_before>/* global describe, it */
import {expect} from 'chai'
import Swimsuit from '..'

describe('Swimsuit', () => {
  it('should load additional feature tests', done => {
    Swimsuit.load('websockets').then(() => {
      expect(Swimsuit.websockets).to.exist
      done()
    })<commit_msg>testing errors<commit_after>/* global describe, it */
import {expect} from 'chai'
import Swimsuit from '..'

describe('Swimsuit', () => {
  it('should load additional feature tests', done => {
    Swimsuit.load('websockets').then(() => {
      expect(Swimsuit.websockets).to.exist
      done()
    })
  })

  it('should reject if trying to load a number', done => {
    Swimsuit.load(42).catch(err => {
      expect(err).to.exist
      expect(err).to.equal('You must pass in an array of tests')
    })
{'fraction_non_alphanumeric': 0.17125, 'fraction_numerical': 0.0025, 'mean_word_length': 3.401098901098901, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3551774', 'n_tokens_mistral': 261, 'n_tokens_neox': 252, 'n_words': 62}