<commit_before>'use strict';

const gplay = require('../index');
const assert = require('chai').assert;

describe('Suggest method', () => {
  it('should return five suggestion for a common term', () => {
    return gplay.suggest('panda')
    .then((results) => {
      assert.equal(results.length, 5);
      results.map((r) => assert.include(r, 'panda'));<commit_msg>updated test assert message<commit_after>'use strict';

const gplay = require('../index');
const assert = require('chai').assert;

describe('Suggest method', () => {
  it('should return five suggestion for a common term', () => {
    return gplay.suggest('panda')
    .then((results) => {
      assert.equal(results.length, 5, `expected ${results} to have 5 elements`);
      results.map((r) => assert.include(r, 'panda'));
{'fraction_non_alphanumeric': 0.189873417721519, 'fraction_numerical': 0.0037974683544303796, 'mean_word_length': 4.273333333333333, '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': '7107979', 'n_tokens_mistral': 243, 'n_tokens_neox': 234, 'n_words': 60}