Skip to content
Snippets Groups Projects
Commit 3ee002e9 authored by Sandro Weber's avatar Sandro Weber
Browse files

eslint fixes

parent c6f9c793
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,6 @@ export const handlers = [ ...@@ -81,6 +81,6 @@ export const handlers = [
rest.delete(`${config.api.proxy.url}${endpoints.proxy.storage.userModels.url}/:modelType/:modelName`, rest.delete(`${config.api.proxy.url}${endpoints.proxy.storage.userModels.url}/:modelType/:modelName`,
(req, res, ctx) => { (req, res, ctx) => {
return res(ctx.json(MockCustomModels[1])); return res(ctx.json(MockCustomModels[1]));
}), })
]; ];
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import '@testing-library/jest-dom'; import '@testing-library/jest-dom';
import 'jest-fetch-mock'; import 'jest-fetch-mock';
import ModelsStorageService from '../models-storage-service' import ModelsStorageService from '../models-storage-service';
test('makes sure that invoking the constructor fails with the right message', () => { test('makes sure that invoking the constructor fails with the right message', () => {
expect(() => { expect(() => {
......
...@@ -129,7 +129,7 @@ class ModelsStorageService extends HttpService { ...@@ -129,7 +129,7 @@ class ModelsStorageService extends HttpService {
* @return the response of the request * @return the response of the request
*/ */
async setCustomModel(modelType, modelName, fileContent) { async setCustomModel(modelType, modelName, fileContent) {
try { try {
this.verifyModelType(modelType); this.verifyModelType(modelType);
const setCustomModelURL = `${storageModelsURL}/${modelType}/${modelName}`; const setCustomModelURL = `${storageModelsURL}/${modelType}/${modelName}`;
......
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