Fix jwt-token

This commit is contained in:
2025-09-15 20:35:51 +02:00
parent 8301080755
commit f0b3b8088c

View File

@@ -510,12 +510,11 @@ describe('Models', () => {
// SQLite doesn't enforce ENUM constraints, so test valid creation
const alertLog = await models.AlertLog.create({
device_id: device.id,
rule_name: 'Test Alert',
threat_level: 'critical', // Valid threat level
priority: 'critical', // Valid priority level
message: 'Test message'
});
expect(alertLog.threat_level).to.equal('critical');
expect(alertLog.priority).to.equal('critical');
});
it('should associate with device', async () => {