Fix jwt-token
This commit is contained in:
@@ -562,7 +562,7 @@ describe('Models', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const heartbeatData = {
|
const heartbeatData = {
|
||||||
key: 'device_123_key',
|
device_key: 'device_123_key',
|
||||||
device_id: device.id,
|
device_id: device.id,
|
||||||
signal_strength: -50,
|
signal_strength: -50,
|
||||||
battery_level: 85,
|
battery_level: 85,
|
||||||
@@ -575,14 +575,14 @@ describe('Models', () => {
|
|||||||
|
|
||||||
console.log('DEBUG Heartbeat created:', {
|
console.log('DEBUG Heartbeat created:', {
|
||||||
id: heartbeat.id,
|
id: heartbeat.id,
|
||||||
key: heartbeat.key,
|
device_key: heartbeat.device_key,
|
||||||
device_id: heartbeat.device_id,
|
device_id: heartbeat.device_id,
|
||||||
battery_level: heartbeat.battery_level,
|
battery_level: heartbeat.battery_level,
|
||||||
allFields: Object.keys(heartbeat.dataValues)
|
allFields: Object.keys(heartbeat.dataValues)
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(heartbeat.id).to.exist;
|
expect(heartbeat.id).to.exist;
|
||||||
expect(heartbeat.key).to.equal('device_123_key');
|
expect(heartbeat.device_key).to.equal('device_123_key');
|
||||||
expect(heartbeat.device_id).to.equal(device.id);
|
expect(heartbeat.device_id).to.equal(device.id);
|
||||||
expect(heartbeat.battery_level).to.equal(85);
|
expect(heartbeat.battery_level).to.equal(85);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user