mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fixed two excluded unit tests
This commit is contained in:
committed by
Vito Albano
parent
445b7803c3
commit
1a9e53d813
@@ -191,10 +191,8 @@ describe('Oauth2 test', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: we need to fix this test
|
it('should refresh token when the login not use the implicitFlow ', (done) => {
|
||||||
// eslint-disable-next-line ban/ban
|
jest.spyOn(window, 'document', 'get').mockReturnValueOnce(undefined);
|
||||||
xit('should refresh token when the login not use the implicitFlow ', (done) => {
|
|
||||||
jest.setTimeout(3000);
|
|
||||||
oauth2Mock.get200Response();
|
oauth2Mock.get200Response();
|
||||||
|
|
||||||
const oauth2Auth = new Oauth2Auth(
|
const oauth2Auth = new Oauth2Auth(
|
||||||
@@ -229,9 +227,8 @@ describe('Oauth2 test', () => {
|
|||||||
oauth2Auth.login('admin', 'admin');
|
oauth2Auth.login('admin', 'admin');
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: we need to fix this test
|
it('should not hang the app also if the logout is missing', (done) => {
|
||||||
// eslint-disable-next-line ban/ban
|
jest.spyOn(window, 'document', 'get').mockReturnValueOnce(undefined);
|
||||||
xit('should not hang the app also if teh logout is missing', (done) => {
|
|
||||||
oauth2Mock.get200Response();
|
oauth2Mock.get200Response();
|
||||||
|
|
||||||
const oauth2Auth = new Oauth2Auth(
|
const oauth2Auth = new Oauth2Auth(
|
||||||
|
Reference in New Issue
Block a user