Should use .equal, not .eql, unless you have a good reason. eql checks javascript '==', equal checks '==='