尼诺斯 简单存根/间谍 例 建立 const test = require ( 'ninos' ) ( require ( 'ava' ) ) ; t.context.stub() const EventEmitter = require ( 'events' ) ; test ( 'EventEmitter' , t => { let e = new EventEmitter ( ) ; let s = t . context . stub ( ) ; e . on ( 'event' , s ) ; e . emit ( 'event' ) ; t . is ( s