Fix jwt-token

This commit is contained in:
2025-09-15 15:39:01 +02:00
parent caf7e878f7
commit 652dcecc13
2 changed files with 10 additions and 2 deletions

View File

@@ -571,6 +571,14 @@ describe('Models', () => {
const heartbeat = await models.Heartbeat.create(heartbeatData);
console.log('DEBUG Heartbeat created:', {
id: heartbeat.id,
key: heartbeat.key,
device_id: heartbeat.device_id,
battery_level: heartbeat.battery_level,
allFields: Object.keys(heartbeat.dataValues)
});
expect(heartbeat.id).to.exist;
expect(heartbeat.key).to.equal('device_123_key');
expect(heartbeat.device_id).to.equal(device.id);