A personal media tracker built on the AT Protocol opnshelf.xyz
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: fix tests

+18 -11
+12 -10
apps/web/src/routes/search.tsx
··· 316 316 </h2> 317 317 {isDiscoverLoading && ( 318 318 <div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4"> 319 - {["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"].map((key) => ( 320 - <div key={`discover-loading-${key}`}> 321 - <Skeleton className="aspect-2/3 rounded-lg mb-2" /> 322 - <Skeleton className="h-4 w-3/4 mb-1" /> 323 - <Skeleton className="h-3 w-1/2" /> 324 - </div> 325 - ))} 319 + {["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"].map( 320 + (key) => ( 321 + <div key={`discover-loading-${key}`}> 322 + <Skeleton className="aspect-2/3 rounded-lg mb-2" /> 323 + <Skeleton className="h-4 w-3/4 mb-1" /> 324 + <Skeleton className="h-3 w-1/2" /> 325 + </div> 326 + ), 327 + )} 326 328 </div> 327 329 )} 328 330 {discoverData && discoverData.results.length > 0 && ( ··· 377 379 (markMutation.isPending && 378 380 markMutation.variables?.body?.movieId === 379 381 movieId) || 380 - (unmarkMutation.isPending && 381 - unmarkMutation.variables?.path 382 - ?.movieId === movieId) 382 + (unmarkMutation.isPending && 383 + unmarkMutation.variables?.path 384 + ?.movieId === movieId) 383 385 } 384 386 className={`absolute top-2 right-2 z-10 ${ 385 387 isWatched
+1
backend/src/movies/movies.controller.spec.ts
··· 22 22 const mockMoviesService = { 23 23 searchMovies: jest.fn(), 24 24 getMovieDetails: jest.fn(), 25 + getMovieCredits: jest.fn(), 25 26 getUserMovies: jest.fn(), 26 27 getMovieByTMDBId: jest.fn(), 27 28 markWatched: jest.fn(),
+5 -1
packages/api/src/generated/core/queryKeySerializer.gen.ts
··· 57 57 * Turns URLSearchParams into a sorted JSON object for deterministic keys. 58 58 */ 59 59 const serializeSearchParams = (params: URLSearchParams): JsonValue => { 60 - const entries = Array.from(params.entries()).sort(([a], [b]) => a.localeCompare(b)); 60 + const entries: Array<[string, string]> = []; 61 + params.forEach((value, key) => { 62 + entries.push([key, value]); 63 + }); 64 + entries.sort((a, b) => a[0].localeCompare(b[0])); 61 65 const result: Record<string, JsonValue> = {}; 62 66 63 67 for (const [key, value] of entries) {