diff --git a/tests/testGetImage.js b/tests/testGetImage.js new file mode 100644 index 0000000..3fa84ed --- /dev/null +++ b/tests/testGetImage.js @@ -0,0 +1,7 @@ +export function GetImage(type) { + // Concatenate '../../../assets/' and type + const imagePath = `../../../assets/${type}`; + + // Return the full URL to the image + return new URL(imagePath, import.meta.url).href; +}