[MIGRATION] - Fixing failing migrated tests

This commit is contained in:
VitoAlbano
2024-11-14 23:34:18 +00:00
committed by Vito Albano
parent 76fecf705a
commit 7c6e9ab831
6 changed files with 61 additions and 27 deletions

View File

@@ -55,7 +55,7 @@ describe('Bpm Auth test', () => {
});
describe('With Authentication', () => {
it('login should return the Ticket if all is ok', (done) => {
it('login should return the Ticket if all is ok', async () => {
authBpmMock.get200Response();
const processAuth = new ProcessAuth({
@@ -63,10 +63,8 @@ describe('Bpm Auth test', () => {
contextRootBpm: 'activiti-app'
});
processAuth.login('admin', 'admin').then((data) => {
assert.equal(data, 'Basic YWRtaW46YWRtaW4=');
done();
});
const data = await processAuth.login('admin', 'admin');
assert.equal(data, 'Basic YWRtaW46YWRtaW4=');
});
it('login password should be removed after login', (done) => {