<commit_before>var client = require('../dist/client.js');

describe('A suite', function () {
  it('contains spec with an expectation', function () {
    expect(true).toBe(true);
  });
});<commit_msg>Test if function update is defined<commit_after>var client = require('../dist/client.js');

describe('Client', function () {
  var sut;

  beforeEach(function () {
    sut = client({ on: function () {} });
  });

  it('should have a function called update', function () {
    expect(sut.update).toBeDefined();
  });
});
{'fraction_non_alphanumeric': 0.19305019305019305, 'fraction_numerical': 0.0, 'mean_word_length': 4.138613861386139, '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': '6917786', 'n_tokens_mistral': 159, 'n_tokens_neox': 153, 'n_words': 38}