One Hat Cyber Team
Your IP :
216.73.216.44
Server IP :
162.240.179.46
Server :
Linux vps-14493116.nutrivittasaude.com.br 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
node_modules
/
pm2
/
node_modules
/
tx2
/
test
/
View File Name :
event.mocha.js
const tx2 = require('..') const should = require('should') describe('Event', function() { it('should emit an event without data', (done) => { tx2.once('data', (dt) => { should(dt.type).eql('human:event') done() }) tx2.event('something special') }) it('should emit an event with data', (done) => { tx2.once('data', (dt) => { should(dt.type).eql('human:event') should(dt.data.yes).eql(true) done() }) tx2.event('something special', { yes : true }) }) })