Fix jwt-token
This commit is contained in:
@@ -393,11 +393,11 @@ describe('Models', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const detectionWithDevice = await models.DroneDetection.findByPk(detection.id, {
|
const detectionWithDevice = await models.DroneDetection.findByPk(detection.id, {
|
||||||
include: [models.Device]
|
include: [{ model: models.Device, as: 'device' }]
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(detectionWithDevice.Device).to.exist;
|
expect(detectionWithDevice.device).to.exist;
|
||||||
expect(detectionWithDevice.Device.id).to.equal(device.id);
|
expect(detectionWithDevice.device.id).to.equal(device.id);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user