Add tests for displayName change

This commit is contained in:
Johannes Zellner
2016-03-31 16:24:25 +02:00
parent 1ddb3a58da
commit 915c37a72f
+3
View File
@@ -309,6 +309,7 @@ describe('SimpleAuth API', function () {
expect(result.body.user.id).to.be.a('string');
expect(result.body.user.username).to.be.a('string');
expect(result.body.user.email).to.be.a('string');
expect(result.body.user.displayName).to.be.a('string');
expect(result.body.user.admin).to.be.a('boolean');
superagent.get(SERVER_URL + '/api/v1/profile')
@@ -340,6 +341,7 @@ describe('SimpleAuth API', function () {
expect(result.body.user.id).to.be.a('string');
expect(result.body.user.username).to.be.a('string');
expect(result.body.user.email).to.be.a('string');
expect(result.body.user.displayName).to.be.a('string');
expect(result.body.user.admin).to.be.a('boolean');
superagent.get(SERVER_URL + '/api/v1/profile')
@@ -371,6 +373,7 @@ describe('SimpleAuth API', function () {
expect(result.body.user.id).to.be.a('string');
expect(result.body.user.username).to.be.a('string');
expect(result.body.user.email).to.be.a('string');
expect(result.body.user.displayName).to.be.a('string');
expect(result.body.user.admin).to.be.a('boolean');
superagent.get(SERVER_URL + '/api/v1/profile')