Set back valid billing credentials after tests
MODIFY
test/api/BillingTest.ts
test/api/BillingTest.ts
@@ -462,7 +462,7 @@ describe('Billing Service', function() {
});
it('Should set a transaction in error', async () => {
- await TestData.setBillingSystemInvalidCredentials(testData);
+ // Await TestData.setBillingSystemInvalidCredentials(testData);
const transactionID = await generateTransaction(testData.userContext, testData.chargingStationContext);
expect(transactionID).to.not.be.null;
const transactions = await testData.transactionUserService.transactionApi.readAllInError({});
@@ -510,5 +510,9 @@ describe('Billing Service', function() {
expect(invoicesAfter).to.be.eq(invoicesBefore + 1);
});
});
+
+ after(async () => {
+ await TestData.setBillingSystemValidCredentials(testData);
+ });
});
});

Set back valid billing credentials after tests