nl_tokens: Checks that a build has an expected commit hash .
pl_tokens: function checkBuildCommit ( build , localCommit ) { const buildCommit = build . commit ; let message = ` ${ buildCommit . sha } ${ localCommit . sha } ` ; if ( localCommit . name ) { message += ` ${ localCommit . <mask> } ` ; } // assert gives us useful exception properties for callers assert . strictEqual ( buildCommit . sha , localCommit . sha , message ) ; return build ; }