mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 02:54:13 +00:00
fix lint issues
This commit is contained in:
@@ -52,7 +52,7 @@ describe('CollectionGridElementComponent', () => {
|
|||||||
|
|
||||||
if (mockCollection.shortDescription.length > 0) {
|
if (mockCollection.shortDescription.length > 0) {
|
||||||
expect(descriptionText).toBeDefined();
|
expect(descriptionText).toBeDefined();
|
||||||
}else {
|
} else {
|
||||||
expect(descriptionText).not.toBeDefined();
|
expect(descriptionText).not.toBeDefined();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -59,7 +59,7 @@ describe('CommunityGridElementComponent', () => {
|
|||||||
|
|
||||||
if (mockCommunity.shortDescription.length > 0) {
|
if (mockCommunity.shortDescription.length > 0) {
|
||||||
expect(descriptionText).toBeDefined();
|
expect(descriptionText).toBeDefined();
|
||||||
}else {
|
} else {
|
||||||
expect(descriptionText).not.toBeDefined();
|
expect(descriptionText).not.toBeDefined();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -59,7 +59,7 @@ describe('ItemGridElementComponent', () => {
|
|||||||
|
|
||||||
if (mockItem.filterMetadata(['dc.contributor.author', 'dc.creator', 'dc.contributor.*']).length > 0) {
|
if (mockItem.filterMetadata(['dc.contributor.author', 'dc.creator', 'dc.contributor.*']).length > 0) {
|
||||||
expect(itemAuthorField).toBeDefined();
|
expect(itemAuthorField).toBeDefined();
|
||||||
}else {
|
} else {
|
||||||
expect(itemAuthorField).toBeDefined();
|
expect(itemAuthorField).toBeDefined();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -57,7 +57,7 @@ describe('CollectionSearchResultGridElementComponent', () => {
|
|||||||
|
|
||||||
if (mockCollection.shortDescription.length > 0) {
|
if (mockCollection.shortDescription.length > 0) {
|
||||||
expect(descriptionText).toBeDefined();
|
expect(descriptionText).toBeDefined();
|
||||||
}else {
|
} else {
|
||||||
expect(descriptionText).not.toBeDefined();
|
expect(descriptionText).not.toBeDefined();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -56,7 +56,7 @@ describe('CommunitySearchResultGridElementComponent', () => {
|
|||||||
|
|
||||||
if (mockCommunity.shortDescription.length > 0) {
|
if (mockCommunity.shortDescription.length > 0) {
|
||||||
expect(descriptionText).toBeDefined();
|
expect(descriptionText).toBeDefined();
|
||||||
}else {
|
} else {
|
||||||
expect(descriptionText).not.toBeDefined();
|
expect(descriptionText).not.toBeDefined();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -62,7 +62,7 @@ describe('ItemSearchResultGridElementComponent', () => {
|
|||||||
|
|
||||||
if (mockItem.filterMetadata(['dc.contributor.author', 'dc.creator', 'dc.contributor.*']).length > 0) {
|
if (mockItem.filterMetadata(['dc.contributor.author', 'dc.creator', 'dc.contributor.*']).length > 0) {
|
||||||
expect(itemAuthorField).toBeDefined();
|
expect(itemAuthorField).toBeDefined();
|
||||||
}else {
|
} else {
|
||||||
expect(itemAuthorField).not.toBeDefined();
|
expect(itemAuthorField).not.toBeDefined();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -72,7 +72,7 @@ describe('ItemSearchResultGridElementComponent', () => {
|
|||||||
|
|
||||||
if (mockItem.findMetadata('dc.date.issued').length > 0) {
|
if (mockItem.findMetadata('dc.date.issued').length > 0) {
|
||||||
expect(dateField).toBeDefined();
|
expect(dateField).toBeDefined();
|
||||||
}else {
|
} else {
|
||||||
expect(dateField).not.toBeDefined();
|
expect(dateField).not.toBeDefined();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -117,7 +117,6 @@
|
|||||||
"variable-declaration": "nospace"
|
"variable-declaration": "nospace"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"typeof-compare": true,
|
|
||||||
"unified-signatures": true,
|
"unified-signatures": true,
|
||||||
"variable-name": [
|
"variable-name": [
|
||||||
true,
|
true,
|
||||||
@@ -146,7 +145,6 @@
|
|||||||
"ds",
|
"ds",
|
||||||
"camelCase"
|
"camelCase"
|
||||||
],
|
],
|
||||||
"invoke-injectable": true,
|
|
||||||
"no-input-rename": true,
|
"no-input-rename": true,
|
||||||
"no-output-rename": true,
|
"no-output-rename": true,
|
||||||
"templates-use-public": false,
|
"templates-use-public": false,
|
||||||
|
Reference in New Issue
Block a user