File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
legacy/flows/dappsExplorer Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ import { iconFiles } from "$lib/legacy/flows/dappsExplorer/dapps" ;
2+
3+ describe ( "dapps" , ( ) => {
4+ it ( "all logos are present" , async ( ) => {
5+ ( await import ( "./dapps.json" ) ) . default . forEach ( ( dapp ) => {
6+ expect (
7+ Object . keys ( iconFiles ) . find ( ( path ) => path . endsWith ( dapp . logo ) ) ,
8+ `The file ${ dapp . logo } is missing` ,
9+ ) . toBeDefined ( ) ;
10+ } ) ;
11+ } ) ;
12+ } ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { features } from "$lib/legacy/features";
66import dappsJson from "./dapps.json" with { type : "json" } ;
77
88// This path should point to internet-identity/src/frontend/src/assets/icons/*
9- const iconFiles = import . meta. glob ( "$lib/icons/*" , {
9+ export const iconFiles = import . meta. glob ( "$lib/icons/*" , {
1010 eager : true ,
1111 query : "?url" ,
1212 import : "default" ,
You can’t perform that action at this time.
0 commit comments