Monorepo for Aesthetic.Computer
aesthetic.computer
1// Test to verify stample.mjs can be loaded without syntax errors
2// This test specifically validates that there are no duplicate const declarations
3
4import { strict as assert } from "assert";
5
6async function testStampleLoads() {
7 try {
8 // Attempt to dynamically import the module
9 // This will throw a SyntaxError if there are duplicate const declarations
10 const stamplePath = new URL(
11 "../system/public/aesthetic.computer/disks/stample.mjs",
12 import.meta.url
13 );
14
15 await import(stamplePath);
16
17 console.log("✓ stample.mjs loads successfully without syntax errors");
18 return true;
19 } catch (error) {
20 console.error("✗ Failed to load stample.mjs:", error.message);
21 throw error;
22 }
23}
24
25// Run the test
26testStampleLoads()
27 .then(() => {
28 console.log("\nAll tests passed!");
29 process.exit(0);
30 })
31 .catch((error) => {
32 console.error("\nTest failed!");
33 process.exit(1);
34 });