Commit 6e841a28 authored by Exbrayat Cédric's avatar Exbrayat Cédric
Browse files

chore: lint fixes

parent 4729a703
......@@ -25,8 +25,7 @@ export class HighlightService {
if (textContent.length > remainingLength) {
childNode.textContent = textContent.substring(0, remainingLength);
length += remainingLength;
}
else {
} else {
length += textContent.length;
}
}
......
......@@ -55,7 +55,8 @@ describe('SearchService', () => {
const resource = toGeneticResource('Bacteria');
const expectedResults = toSinglePage([resource]);
http.expectOne('/api/genetic-resources?query=Bacteria&page=0&highlight=true&coo=France&coo=Italy&domain=Forest').flush(expectedResults);
http.expectOne('/api/genetic-resources?query=Bacteria&page=0&highlight=true&coo=France&coo=Italy&domain=Forest')
.flush(expectedResults);
expect(actualResults).toEqual(expectedResults);
});
......@@ -70,7 +71,8 @@ describe('SearchService', () => {
const aggregation = toAggregation('coo', ['France', 'Italy']);
const expectedResults = toSinglePage([resource], [aggregation]);
http.expectOne('/api/genetic-resources?query=Bacteria&page=0&highlight=true&aggregate=true&coo=France&coo=Italy&domain=Forest').flush(expectedResults);
http.expectOne('/api/genetic-resources?query=Bacteria&page=0&highlight=true&aggregate=true&coo=France&coo=Italy&domain=Forest')
.flush(expectedResults);
expect(actualResults).toEqual(expectedResults);
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment