mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix "ng lint" command (#5012)
* update to latest js-api * fix the "ng lint" command * fix linting issues * fix lint issues * lint fixes * code fixes * fix html * fix html * update tests * test fixes * update tests * fix tests and api * fix code
This commit is contained in:
committed by
Eugenio Romano
parent
140c64b79f
commit
edc0945f39
@@ -18,7 +18,7 @@
|
||||
/* tslint:disable:adf-file-name */
|
||||
export class AlfrescoApiMock {
|
||||
|
||||
login(username: string, password: string) {
|
||||
login() {
|
||||
return new Promise((resolve) => {
|
||||
resolve('TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1');
|
||||
});
|
||||
|
@@ -132,7 +132,7 @@ export let deleteGroupMappingApi = {
|
||||
|
||||
export let returnCallQueryParameters = {
|
||||
oauth2Auth: {
|
||||
callCustomApi: (queryUrl, operation, context, queryParams) => {
|
||||
callCustomApi: (_queryUrl, _operation, _context, queryParams) => {
|
||||
return Promise.resolve(queryParams);
|
||||
}
|
||||
}
|
||||
@@ -140,7 +140,7 @@ export let returnCallQueryParameters = {
|
||||
|
||||
export let returnCallUrl = {
|
||||
oauth2Auth: {
|
||||
callCustomApi: (queryUrl, operation, context, queryParams) => {
|
||||
callCustomApi: (queryUrl) => {
|
||||
return Promise.resolve(queryUrl);
|
||||
}
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ export let mockError = {
|
||||
export let searchMockApi = {
|
||||
core: {
|
||||
queriesApi: {
|
||||
findNodes: (term, opts) => Promise.resolve(fakeSearch)
|
||||
findNodes: () => Promise.resolve(fakeSearch)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@@ -42,11 +42,11 @@ export class TranslationMock implements TranslationService {
|
||||
|
||||
loadTranslation() {}
|
||||
|
||||
get(key: string | Array<string>, interpolateParams?: Object): Observable<string | any> {
|
||||
get(key: string | Array<string>): Observable<string | any> {
|
||||
return of(key);
|
||||
}
|
||||
|
||||
instant(key: string | Array<string>, interpolateParams?: Object): string | any {
|
||||
instant(key: string | Array<string>): string | any {
|
||||
return key;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user