mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
eslint fixes
This commit is contained in:
@@ -14,7 +14,7 @@ class ImageViewer extends React.Component<Props> {
|
||||
return (
|
||||
<div className="has-text-centered">
|
||||
<figure>
|
||||
<img src={file._links.self.href} />
|
||||
<img src={file._links.self.href} alt={file._links.self.href} />
|
||||
</figure>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -107,7 +107,6 @@ export function getLanguage(contentType: string) {
|
||||
languageType = language;
|
||||
}
|
||||
|
||||
console.log(languageType);
|
||||
return languageType;
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +152,6 @@ export function getContentType(url: string, state: any) {
|
||||
return apiClient
|
||||
.head(url)
|
||||
.then(response => {
|
||||
console.log(response.headers.get("Content-Type"));
|
||||
return { type: response.headers.get("Content-Type") };
|
||||
})
|
||||
.catch(err => {
|
||||
|
||||
@@ -95,27 +95,6 @@ const noDirectory: File = {
|
||||
_embedded: collection
|
||||
};
|
||||
|
||||
const directory: File = {
|
||||
name: "package.json",
|
||||
path: "package.json",
|
||||
directory: false,
|
||||
description: "bump version",
|
||||
length: 780,
|
||||
lastModified: "2017-07-31T11:17:19Z",
|
||||
revision: "abc",
|
||||
_links: {
|
||||
self: {
|
||||
href:
|
||||
"http://localhost:8081/scm/rest/api/v2/repositories/scm/core/content/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/package.json"
|
||||
},
|
||||
history: {
|
||||
href:
|
||||
"http://localhost:8081/scm/rest/api/v2/repositories/scm/core/sources/history/76aae4bb4ceacf0e88938eb5b6832738b7d537b4/package.json"
|
||||
}
|
||||
},
|
||||
_embedded: {}
|
||||
};
|
||||
|
||||
describe("sources fetch", () => {
|
||||
const mockStore = configureMockStore([thunk]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user