/usr/local/lib/node_modules/pm2/node_modules/tx2/test
NameSizeModeActions
action.mocha.js3810644editdlrm
event.mocha.js5200644editdlrm
issue.mocha.js5400644editdlrm
metric.mocha.js25770644editdlrm
Edit: /usr/local/lib/node_modules/pm2/node_modules/tx2/test/action.mocha.js (381B)
const tx2 = require('..') const should = require('should') describe('Action', function() { it('should notify about new action', (done) => { tx2.once('data', (dt) => { should(dt.type).eql('axm:action') should(dt.data.action_name).eql('something special') done() }) tx2.action('something special', (cb) => { cb({sucess:true}) }) }) })