fix image server references for tests (2 tests failing: missing function & looking for registration prompt for unregistered user)

This commit is contained in:
2025-02-16 09:11:28 -07:00
parent a66093028e
commit c9c3cacfbd
17 changed files with 137 additions and 106 deletions

View File

@@ -23,8 +23,6 @@ const enterOrStart = async (
const accountsDB = await accountsDBPromise;
const num_accounts = await accountsDB.accounts.count();
console.log("Number of accounts: ", num_accounts);
if (num_accounts > 0) {
next();
} else {
@@ -299,8 +297,6 @@ const router = createRouter({
routes,
});
console.log("Initial URL:", initialPath);
// Replace initial URL to start at `/` if necessary
router.replace(initialPath || "/");
@@ -319,12 +315,10 @@ const errorHandler = (
router.onError(errorHandler); // Assign the error handler to the router instance
router.beforeEach((to, from, next) => {
console.log("Navigating to view:", to.name);
console.log("From view:", from.name);
next();
});
console.log("Initial URL:", window.location.pathname);
// router.beforeEach((to, from, next) => {
// console.log("Navigating to view:", to.name);
// console.log("From view:", from.name);
// next();
// });
export default router;