.then(res => { expect(res.name).to.equal('James') expect(res.surname).to.equal('Bond') expect(res.address).to.equal('Roc Boronat 35') expect(res.email).to.equal('*****@*****.**') return singingLabApi.unregisterUser(logic.userId(), res.email, '456') .then(res => { expect(res).to.be.true }) })
.then(id => api.unregisterUser(id, email, password)
.then(id => singingLabApi.unregisterUser(id, email, password)