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 // SQLite doesn't enforce ENUM constraints, so test valid creation
const alertLog = await models.AlertLog.create({ const alertLog = await models.AlertLog.create({
device_id: device.id, device_id: device.id,
rule_name: 'Test Alert', priority: 'critical', // Valid priority level
threat_level: 'critical', // Valid threat level
message: 'Test message' message: 'Test message'
}); });
expect(alertLog.threat_level).to.equal('critical'); expect(alertLog.priority).to.equal('critical');
}); });
it('should associate with device', async () => { it('should associate with device', async () => {