var assert= require('assert');

var file = '../../lib/eventemitter2';
var EventEmitter2;

if(typeof require !== 'undefined') {
    EventEmitter2 = require(file).EventEmitter2;
}
else {
    EventEmitter2 = window.EventEmitter2;
}

module.exports= {
    'use prepend on wildcards mode': function(){
        var ee = new EventEmitter2({
            wildcard: true
        });
        var type = ['some', 'listener', 'bar'];
        const function1 = function () {}
        const function2 = function () {}

        ee.on(type, function2);
        ee.prependListener(type, function1);
        assert.equal(ee.listeners(type)[0], function1);
    }
};

@@ -589,17 +589,27 @@
  assert.
-e
+deepStrictE
 qual(ee.
@@ -627,11 +627,20 @@
 ype)
-%5B0%5D
+, %5Bfunction1
 , fu
@@ -641,25 +641,25 @@
 n1, function
-1);
+2%5D)
 %0A    %7D%0A%7D;%0A

Refactor test without nodeunit