Fix jwt-token

This commit is contained in:
2025-09-15 15:25:07 +02:00
parent 9648ae7e55
commit a416a5c391

View File

@@ -126,10 +126,9 @@ describe('Models', () => {
});
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.createdAt).to.exist;
expect(user.updatedAt).to.exist;
expect(user.created_at).to.exist;
expect(user.updated_at).to.exist;
});
it('should associate with tenant', async () => {
@@ -194,7 +193,7 @@ describe('Models', () => {
expect(tenant.is_active).to.be.true;
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 () => {