Probably `assert.deepEqual(spyDispatchEvent.lastCall.args[0].detail.data, message);` ?