style: fix linting issues met Prettier
This commit is contained in:
parent
906eb36fec
commit
6017d9c54f
4 changed files with 12 additions and 7 deletions
|
@ -4,7 +4,10 @@ export const apiConfig = {
|
|||
return import.meta.env.VITE_API_BASE_URL;
|
||||
}
|
||||
|
||||
if (window.location.hostname === "localhost" && !(window.location.port === "80" || window.location.port === "")) {
|
||||
if (
|
||||
window.location.hostname === "localhost" &&
|
||||
!(window.location.port === "80" || window.location.port === "")
|
||||
) {
|
||||
return "http://localhost:3000/api";
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import apiClient from "@/services/api-client/api-client.ts";
|
||||
import type { AxiosResponse, ResponseType } from "axios";
|
||||
import { HttpErrorResponseException } from "@/exception/http-error-response-exception.ts";
|
||||
import { apiConfig } from '@/config.ts';
|
||||
import { apiConfig } from "@/config.ts";
|
||||
|
||||
export abstract class BaseController {
|
||||
protected basePath: string;
|
||||
|
@ -25,7 +25,9 @@ export abstract class BaseController {
|
|||
if (error instanceof HttpErrorResponseException) {
|
||||
throw error;
|
||||
}
|
||||
throw new Error(`An unexpected error occurred while fetching data from ${apiConfig.baseUrl}${this.absolutePathFor(path)}: ${error}`);
|
||||
throw new Error(
|
||||
`An unexpected error occurred while fetching data from ${apiConfig.baseUrl}${this.absolutePathFor(path)}: ${error}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { spawn } from "child_process";
|
||||
import { ChildProcess, spawnSync } from 'node:child_process';
|
||||
import { ChildProcess, spawnSync } from "node:child_process";
|
||||
|
||||
let backendProcess: ChildProcess;
|
||||
|
||||
|
@ -27,8 +27,8 @@ export async function setup(): Promise<void> {
|
|||
stdio: "inherit",
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_ENV: 'test',
|
||||
}
|
||||
NODE_ENV: "test",
|
||||
},
|
||||
});
|
||||
|
||||
// Wait until you can curl the backend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue