diff --git a/server/tests/models/models.test.js b/server/tests/models/models.test.js index 2465605..9eaf15b 100644 --- a/server/tests/models/models.test.js +++ b/server/tests/models/models.test.js @@ -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 () => {