reuse what you already wrote .should.have.attr('id', id)