Fix jwt-token
This commit is contained in:
@@ -126,10 +126,9 @@ describe('Models', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
expect(user.role).to.equal('viewer'); // Default role
|
expect(user.role).to.equal('viewer'); // Default role
|
||||||
console.log('DEBUG: user.role =', user.role, 'user.is_active =', user.is_active);
|
|
||||||
expect(user.is_active).to.be.true;
|
expect(user.is_active).to.be.true;
|
||||||
expect(user.createdAt).to.exist;
|
expect(user.created_at).to.exist;
|
||||||
expect(user.updatedAt).to.exist;
|
expect(user.updated_at).to.exist;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should associate with tenant', async () => {
|
it('should associate with tenant', async () => {
|
||||||
@@ -194,7 +193,7 @@ describe('Models', () => {
|
|||||||
|
|
||||||
expect(tenant.is_active).to.be.true;
|
expect(tenant.is_active).to.be.true;
|
||||||
expect(tenant.allow_registration).to.be.false;
|
expect(tenant.allow_registration).to.be.false;
|
||||||
expect(tenant.ip_restrictions_enabled).to.be.false;
|
expect(tenant.ip_restriction_enabled).to.be.false;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should validate slug format', async () => {
|
it('should validate slug format', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user