mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
Fixes to tests
This commit is contained in:
@@ -204,7 +204,7 @@ describe('ProfilePageComponent', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('canChangePassword$', () => {
|
fdescribe('canChangePassword$', () => {
|
||||||
describe('when the user is allowed to change their password', () => {
|
describe('when the user is allowed to change their password', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
canChangePassword.next(true);
|
canChangePassword.next(true);
|
||||||
@@ -229,9 +229,10 @@ describe('ProfilePageComponent', () => {
|
|||||||
getTestScheduler().expectObservable(component.canChangePassword$).toBe('(a)', { a: false });
|
getTestScheduler().expectObservable(component.canChangePassword$).toBe('(a)', { a: false });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not show the security section on the page', fakeAsync(() => {
|
it('should not show the security section on the page', () => {
|
||||||
|
fixture.detectChanges();
|
||||||
expect(fixture.debugElement.query(By.css('.security-section'))).toBeNull();
|
expect(fixture.debugElement.query(By.css('.security-section'))).toBeNull();
|
||||||
}));
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user