gith icon indicating copy to clipboard operation
gith copied to clipboard

Add filter function unit tests

Open danheberden opened this issue 12 years ago • 0 comments

Need to test things like

gith({
  repo: function( payload ) {
     return /gith/.test( payload.repo );
  }
}).on( 'all', function( payload ) {
  /* do stuff */
});

and create/test

gith( function( payload ) {
  /* check payload for stuff */
  this.emit( 'customevent', payload );
}).on( 'customevent', function( payload ) {
  /* yay! */
});

danheberden avatar Sep 17 '12 20:09 danheberden