add assertion for newUser field on registration

This commit is contained in:
Phillip Thelen
2017-04-06 22:03:50 +02:00
parent 38edc5b416
commit 78a99bf314

View File

@@ -34,6 +34,7 @@ describe('POST /user/auth/local/register', () => {
expect(user.apiToken).to.exist;
expect(user.auth.local.username).to.eql(username);
expect(user.profile.name).to.eql(username);
expect(user.newUser).to.eql(true);
});
it('provides default tags and tasks', async () => {