<commit_before>/**
 * Tests for event/addListener
 * @author <NAME> [<EMAIL>]
 * @requires event/addListener
 */
define([
    'events/trigger',
    'events/addListener'
], function (trigger, addListener) {
    module('events');

    var linkElem = document.createElement('a');
    linkElem.innerText = ('test');
    document.getElementById('qunit-fixture').appendChild(linkElem);

    asyncTest('trigger', function () {

        var removeEventTest = window.setTimeout(function () {
            ok(false, 'Click event failed.');
            start();
        }, 100);

        addListener(linkElem, 'click', function (event) {
            console.log('args', arguments);
            window.clearTimeout(removeEventTest);
            ok(true, 'Click event heard on test element.');
            equal(event.testProperty, 'a String', 'Object returned contained "a String" as expected');
            start();
        });
        trigger(linkElem, 'click', {
            testProperty: 'a String'
        });
    });
});<commit_msg>Removing arguments log from events/trigger test.<commit_after>/**
 * Tests for event/addListener
 * @author <NAME> [<EMAIL>]
 * @requires event/addListener
 */
define([
    'events/trigger',
    'events/addListener'
], function (trigger, addListener) {
    module('events');

    var linkElem = document.createElement('a');
    linkElem.innerText = ('test');
    document.getElementById('qunit-fixture').appendChild(linkElem);

    asyncTest('trigger', function () {

        var removeEventTest = window.setTimeout(function () {
            ok(false, 'Click event failed.');
            start();
        }, 100);

        addListener(linkElem, 'click', function (event) {
            window.clearTimeout(removeEventTest);
            ok(true, 'Click event heard on test element.');
            equal(event.testProperty, 'a String', 'Object returned contained "a String" as expected');
            start();
        });
        trigger(linkElem, 'click', {
            testProperty: 'a String'
        });
    });
});
{'fraction_non_alphanumeric': 0.14845663890249877, 'fraction_numerical': 0.002939735423811857, 'mean_word_length': 2.6529516994633275, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4904831', 'n_tokens_mistral': 553, 'n_tokens_neox': 536, 'n_words': 129}