chore: rm try/catch

This commit is contained in:
Aravinth Manivannan 2024-01-10 18:54:24 +05:30
parent 958773125d
commit d62f482c9c
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -9,12 +9,8 @@ import User from "./user";
test("Create admin fixture @setup", async ({ page }) => { test("Create admin fixture @setup", async ({ page }) => {
const admin = new User(config.ADMIN_USERNAME); const admin = new User(config.ADMIN_USERNAME);
admin.setAdmin(); admin.setAdmin();
try {
await admin.register(page); await admin.register(page);
await admin.logout(page); await admin.logout(page);
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge."); await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
} catch {
console.log("looks like admin is already registered"); console.log("looks like admin is already registered");
}
}); });