[ADF-3591] spellcheck support for code (#3827)

* setup spellcheck
This commit is contained in:
Denys Vuika
2018-10-23 15:05:38 +01:00
committed by Eugenio Romano
parent 53d96679ea
commit e39a2b149b
262 changed files with 1561 additions and 1005 deletions

View File

@@ -178,7 +178,7 @@ export class CustomResourcesService {
}
/**
* Gets all sites in the respository.
* Gets all sites in the repository.
* @param pagination Specifies how to paginate the results
* @returns List of sites
*/
@@ -266,7 +266,7 @@ export class CustomResourcesService {
/**
* Is the folder ID a "-my", "-root-", or "-shared-" alias?
* @param folderId Folder ID name to check
* @returns True if the ID is one of the suppored sources, false otherwise
* @returns True if the ID is one of the supported sources, false otherwise
*/
isSupportedSource(folderId: string): boolean {
let isSupportedSources = false;

View File

@@ -183,10 +183,10 @@ describe('DocumentActionsService', () => {
let file = new FileNode();
let fileWithPermission: any = file;
fileWithPermission.entry.allowableOperations = [permission];
const deleteObservale = service.getHandler('delete')(fileWithPermission, null, permission);
const deleteObservable = service.getHandler('delete')(fileWithPermission, null, permission);
expect(documentListService.deleteNode).toHaveBeenCalledWith(file.entry.id);
expect(deleteObservale.subscribe).toBeDefined();
expect(deleteObservable.subscribe).toBeDefined();
});
it('should support deletion only file node', () => {

View File

@@ -51,8 +51,8 @@ export class DocumentActionsService {
*/
getHandler(key: string): ContentActionHandler {
if (key) {
let lkey = key.toLowerCase();
return this.handlers[lkey] || null;
let lKey = key.toLowerCase();
return this.handlers[lKey] || null;
}
return null;
}
@@ -65,8 +65,8 @@ export class DocumentActionsService {
*/
setHandler(key: string, handler: ContentActionHandler): boolean {
if (key) {
let lkey = key.toLowerCase();
this.handlers[lkey] = handler;
let lKey = key.toLowerCase();
this.handlers[lKey] = handler;
return true;
}
return false;

View File

@@ -117,10 +117,10 @@ describe('FolderActionsService', () => {
let folder = new FolderNode();
let folderWithPermission: any = folder;
folderWithPermission.entry.allowableOperations = [permission];
const deleteObservale = service.getHandler('delete')(folderWithPermission, null, permission);
const deleteObservable = service.getHandler('delete')(folderWithPermission, null, permission);
expect(documentListService.deleteNode).toHaveBeenCalledWith(folder.entry.id);
expect(deleteObservale.subscribe).toBeDefined();
expect(deleteObservable.subscribe).toBeDefined();
});
it('should not delete the folder node if there is no delete permission', (done) => {

View File

@@ -49,8 +49,8 @@ export class FolderActionsService {
*/
getHandler(key: string): ContentActionHandler {
if (key) {
let lkey = key.toLowerCase();
return this.handlers[lkey] || null;
let lKey = key.toLowerCase();
return this.handlers[lKey] || null;
}
return null;
}
@@ -63,8 +63,8 @@ export class FolderActionsService {
*/
setHandler(key: string, handler: ContentActionHandler): boolean {
if (key) {
let lkey = key.toLowerCase();
this.handlers[lkey] = handler;
let lKey = key.toLowerCase();
this.handlers[lKey] = handler;
return true;
}
return false;