nl_tokens: Creates sinon matchers on the SinonExpect . SinonAssertions prototype . This could also be done on including the file but I prefer keeping it in a method .
pl_tokens: function ( ) { var i = 0 , len = SinonExpect . assertions . <mask> , matcher ; for ( i , len ; i < len ; i ++ ) { matcher = SinonExpect . assertions [ i ] ; ( function ( matcher ) { SinonExpect . SinonAssertions . prototype [ matcher ] = function ( ) { var args = Array . prototype . slice . call ( arguments ) , sinon = SinonExpect . _sinon ; args . unshift ( this . obj ) ; sinon . assert [ matcher ] . apply ( sinon . assert , args ) ; } ; } ( matcher ) ) ; } }