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