expector

0.0.16 • Public • Published

expector

node, test, emitter

Expector
var e = new require('expector').Expector();
e.expect( 'a' );
e.expect( 'b' );
e.emit( 'b' );
e.check(); // => fails, missing 'a' event
SeqExpector
var e = new require('expector').SeqExpector();
e.expect( 'first' );
e.expect( 'second' );
e.emit( 'second' ); // => fails, expecting first
Custom asserter
var e = new SeqExpector(DIY.assert);
e.check(); // => fails, no expectations

Readme

Keywords

Package Sidebar

Install

npm i expector

Weekly Downloads

11

Version

0.0.16

License

GPL-2.0

Last publish

Collaborators

  • mbusenitz