From a416a5c3915c3e6e7ba9c2063c73d2bf6e6e3380 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Mon, 15 Sep 2025 15:25:07 +0200 Subject: [PATCH] Fix jwt-token --- server/tests/models/models.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 () => {