Fix jwt-token
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user