feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
18
api.hyungi.net/node_modules/tx2/test/action.mocha.js
generated
vendored
Normal file
18
api.hyungi.net/node_modules/tx2/test/action.mocha.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
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})
|
||||
})
|
||||
})
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user