<commit_before>'use strict';
var expect = require('expect.js');

describe('events:', function () {
    it('should get execution events', function(done) {
        testClient.executions.list('HelloWorld', null, function(err, response, body){
            expect(body).to.be.ok();
            expect(response.statusCode).to.be(200);

            var executions = body;
            expect(executions).to.not.be.empty();

            testClient.events.get(executions[0].id, 0, 100, false, function(err, response, body) {
                expect(body).to.be.ok();
                expect(response.statusCode).to.be(200);
<commit_msg>fix: modify events test to match new signature<commit_after>'use strict';
var expect = require('expect.js');

describe('events:', function () {
    it('should get execution events', function(done) {
        testClient.executions.list('HelloWorld', null, function(err, response, body){
            expect(body).to.be.ok();
            expect(response.statusCode).to.be(200);

            var executions = body;
            expect(executions).to.not.be.empty();

            testClient.events.get( { execution_id : executions[0].id }, function(err, response, body) {
                expect(body).to.be.ok();
                expect(response.statusCode).to.be(200);

{'fraction_non_alphanumeric': 0.15318818040435458, 'fraction_numerical': 0.013996889580093312, 'mean_word_length': 2.741279069767442, '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': '3849525', 'n_tokens_mistral': 384, 'n_tokens_neox': 361, 'n_words': 70}