test change unit test
MODIFY
test/api/FirmwareUpdateStatusTest.ts
test/api/FirmwareUpdateStatusTest.ts
@@ -73,20 +73,20 @@ describe('Firmware Update Status', function() {
});
});
- it('Should correctly assign Downloading Status', async () => {
- const firmwareResponse = await testData.chargingStationContext.sendFirmwareStatusNotification(OCPPFirmwareStatus.DOWNLOADING);
+ it('Should correctly assign Downloaded Status', async () => {
+ const firmwareResponse = await testData.chargingStationContext.sendFirmwareStatusNotification(OCPPFirmwareStatus.DOWNLOADED);
expect(firmwareResponse).to.eql({});
const chargingStationResponse = await testData.chargingStationContext.readChargingStation();
expect(chargingStationResponse.status).to.equal(StatusCodes.OK);
- expect(chargingStationResponse.data.firmwareUpdateStatus).to.equal(OCPPFirmwareStatus.DOWNLOADING);
+ expect(chargingStationResponse.data.firmwareUpdateStatus).to.equal(OCPPFirmwareStatus.DOWNLOADED);
});
- it('Should correctly assign Downloaded Status', async () => {
- const firmwareResponse = await testData.chargingStationContext.sendFirmwareStatusNotification(OCPPFirmwareStatus.DOWNLOADED);
+ it('Should correctly assign Downloading Status TESTTTTTTTTTTT', async () => {
+ const firmwareResponse = await testData.chargingStationContext.sendFirmwareStatusNotification(OCPPFirmwareStatus.DOWNLOADING);
expect(firmwareResponse).to.eql({});
const chargingStationResponse = await testData.chargingStationContext.readChargingStation();
expect(chargingStationResponse.status).to.equal(StatusCodes.OK);
- expect(chargingStationResponse.data.firmwareUpdateStatus).to.equal(OCPPFirmwareStatus.DOWNLOADED);
+ expect(chargingStationResponse.data.firmwareUpdateStatus).to.equal(OCPPFirmwareStatus.DOWNLOADING);
});
it('Should correctly assign Download Failed Status', async () => {

test change unit test