mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ASD-2483] Validate folder name on change (#3088)
* notify service refactoring get translate eliminitation in favor of instant add error event where necessary fix config problem during test * fix delete notify test * remove fdescribe * fix core test * errors * fix types
This commit is contained in:
@@ -76,7 +76,7 @@ describe('NodeRestoreDirective', () => {
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
spyOn(translation, 'get').and.returnValue(Observable.of('message'));
|
||||
spyOn(translation, 'instant').and.returnValue('message');
|
||||
});
|
||||
|
||||
it('should not restore when selection is empty', () => {
|
||||
@@ -201,7 +201,7 @@ describe('NodeRestoreDirective', () => {
|
||||
element.triggerEventHandler('click', null);
|
||||
tick();
|
||||
|
||||
expect(translation.get).toHaveBeenCalledWith(
|
||||
expect(translation.instant).toHaveBeenCalledWith(
|
||||
'CORE.RESTORE_NODE.PARTIAL_PLURAL',
|
||||
{ number: 2 }
|
||||
);
|
||||
@@ -221,7 +221,7 @@ describe('NodeRestoreDirective', () => {
|
||||
element.triggerEventHandler('click', null);
|
||||
tick();
|
||||
|
||||
expect(translation.get).toHaveBeenCalledWith(
|
||||
expect(translation.instant).toHaveBeenCalledWith(
|
||||
'CORE.RESTORE_NODE.NODE_EXISTS',
|
||||
{ name: 'name1' }
|
||||
);
|
||||
@@ -241,7 +241,7 @@ describe('NodeRestoreDirective', () => {
|
||||
element.triggerEventHandler('click', null);
|
||||
tick();
|
||||
|
||||
expect(translation.get).toHaveBeenCalledWith(
|
||||
expect(translation.instant).toHaveBeenCalledWith(
|
||||
'CORE.RESTORE_NODE.GENERIC',
|
||||
{ name: 'name1' }
|
||||
);
|
||||
@@ -261,7 +261,7 @@ describe('NodeRestoreDirective', () => {
|
||||
element.triggerEventHandler('click', null);
|
||||
tick();
|
||||
|
||||
expect(translation.get).toHaveBeenCalledWith(
|
||||
expect(translation.instant).toHaveBeenCalledWith(
|
||||
'CORE.RESTORE_NODE.LOCATION_MISSING',
|
||||
{ name: 'name1' }
|
||||
);
|
||||
@@ -288,7 +288,7 @@ describe('NodeRestoreDirective', () => {
|
||||
element.triggerEventHandler('click', null);
|
||||
tick();
|
||||
|
||||
expect(translation.get).toHaveBeenCalledWith(
|
||||
expect(translation.instant).toHaveBeenCalledWith(
|
||||
'CORE.RESTORE_NODE.PLURAL'
|
||||
);
|
||||
}));
|
||||
@@ -305,7 +305,7 @@ describe('NodeRestoreDirective', () => {
|
||||
element.triggerEventHandler('click', null);
|
||||
tick();
|
||||
|
||||
expect(translation.get).toHaveBeenCalledWith(
|
||||
expect(translation.instant).toHaveBeenCalledWith(
|
||||
'CORE.RESTORE_NODE.SINGULAR',
|
||||
{ name: 'name1' }
|
||||
);
|
||||
|
Reference in New Issue
Block a user