convert to chai.js with expect from should.js