mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
committed by
Eugenio Romano
parent
53d96679ea
commit
e39a2b149b
@@ -128,11 +128,11 @@ describe('LogoutDirective', () => {
|
||||
|
||||
});
|
||||
|
||||
describe('enabelRedirect', () => {
|
||||
describe('enableRedirect', () => {
|
||||
|
||||
@Component({
|
||||
selector: 'adf-test-component',
|
||||
template: '<button adf-logout [enabelRedirect]="false"></button>'
|
||||
template: '<button adf-logout [enableRedirect]="false"></button>'
|
||||
})
|
||||
class TestComponent {
|
||||
@ContentChildren(LogoutDirective)
|
||||
@@ -160,7 +160,7 @@ describe('LogoutDirective', () => {
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should not redirect if enabelRedirect is false', () => {
|
||||
it('should not redirect if enableRedirect is false', () => {
|
||||
spyOn(router, 'navigate');
|
||||
spyOn(authService, 'logout').and.returnValue(of(true));
|
||||
const button = fixture.nativeElement.querySelector('button');
|
||||
|
Reference in New Issue
Block a user