Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeBu committed Dec 11, 2024
1 parent 240d05e commit 40d817e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
29 changes: 17 additions & 12 deletions api/src/core/adapters/fetchExternalData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ const acceleroId = 2;
const insertAcceleroWithCorrectId = async (db: Kysely<Database>, agentId: number) => {
await sql`
INSERT INTO softwares (id, "softwareType", "externalId",
"externalDataOrigin", "comptoirDuLibreId",
name, description, license, "versionMin",
"isPresentInSupportContract",
"isFromFrenchPublicService", "logoUrl",
keywords, "doRespectRgaa",
"isStillInObservation",
"parentSoftwareWikidataId",
"catalogNumeriqueGouvFrId",
"workshopUrls", "testUrls", categories,
"generalInfoMd", "addedByAgentId",
dereferencing, "referencedSinceTime",
"updateTime")
"externalDataOrigin", "comptoirDuLibreId",
name, description, license, "versionMin",
"isPresentInSupportContract",
"isFromFrenchPublicService", "logoUrl",
keywords, "doRespectRgaa",
"isStillInObservation",
"parentSoftwareWikidataId",
"catalogNumeriqueGouvFrId",
"workshopUrls", "testUrls", categories,
"generalInfoMd", "addedByAgentId",
dereferencing, "referencedSinceTime",
"updateTime")
VALUES (${acceleroId}, '{"type": "stack"}', 'Q2822666', 'wikidata', 304,
'Acceleo',
'Outil et/ou plugin de génération de tout ou partie du code',
Expand Down Expand Up @@ -503,6 +503,11 @@ describe("fetches software extra data (from different providers)", () => {
cdlUrl: "https://comptoir-du-libre.org/fr/users/165",
website: "https://www.aplose.fr"
},
{
"cdlUrl": "https://comptoir-du-libre.org/fr/users/4129",
"name": "Keenobi",
"website": "https://keenobi.com/"
},
{
name: "TEICEE",
cdlUrl: "https://comptoir-du-libre.org/fr/users/3838",
Expand Down
2 changes: 0 additions & 2 deletions web/src/core/usecases/userAccountManagement/thunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,13 @@ export const thunks = {
}

{

const { newUrl } = addParamToUrl({
url,
"name": "dark",
"value": `${getIsDark()}`
});

url = newUrl;

}

return url;
Expand Down
1 change: 1 addition & 0 deletions web/src/stories/getStory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const { CoreProvider } = createCoreProvider({
"transformUrlBeforeRedirectToLogin": () => {
assert(false);
},
"getIsDark": () => false,
"getCurrentLang": () => "fr",
"onMoved": () => {
assert(false);
Expand Down
6 changes: 2 additions & 4 deletions web/src/ui/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { LoadingFallback, loadingFallbackClassName } from "ui/shared/LoadingFall
import { useDomRect } from "powerhooks/useDomRect";
import { apiUrl, appUrl, appPath } from "urls";


const { CoreProvider } = createCoreProvider({
apiUrl,
appUrl,
Expand Down Expand Up @@ -67,9 +66,9 @@ const { CoreProvider } = createCoreProvider({

window.location.href = newUrl.toString();
},
// NOTE: Passed so that it can be injected in the Account management URL.
// NOTE: Passed so that it can be injected in the Account management URL.
// I'm not comfortable with this level of indirection, this is only UI related logic
// that shouldn't involve the core. However I do it this way for consistency sake.
// that shouldn't involve the core. However I do it this way for consistency sake.
getIsDark
});

Expand All @@ -88,7 +87,6 @@ export default function App() {
}

function ContextualizedApp() {

const route = useRoute();

const { userAuthentication, sillApiVersion } = useCore().functions;
Expand Down

0 comments on commit 40d817e

Please sign in to comment.