diff --git a/.gitignore b/.gitignore index e51173d..5949a27 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ deno.json tests/work/ -node_modules/ \ No newline at end of file +node_modules/ +.env \ No newline at end of file diff --git a/tests/test.ts b/tests/test.ts index 63a4bdf..d69c149 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -71,7 +71,7 @@ Deno.test("Response Test", async (t) => { // }); }); -Deno.test( +await Deno.test( { name: "Login test", async fn(t) { @@ -142,11 +142,6 @@ Deno.test( }); await t.step("Logout", async () => { - // const formData = new FormData(); - // formData.append("csrf", csrfToken); - // formData.append("email", "test@example.com"); - // formData.append("password", "password"); - const headers = new Headers(); headers.set("cookie", `auth_session=${authSession}`); diff --git a/tests/utils/auth.ts b/tests/utils/auth.ts index 35c2973..cddc18a 100644 --- a/tests/utils/auth.ts +++ b/tests/utils/auth.ts @@ -11,9 +11,9 @@ const connection = await mysql.createConnection({ database: "test", }); -await connection.query(`DROP TABLE user_session`); -await connection.query(`DROP TABLE user_key`); -await connection.query(`DROP TABLE user`); +//await connection.query(`DROP TABLE user_session`); +//await connection.query(`DROP TABLE user_key`); +//await connection.query(`DROP TABLE user`); await connection.query(`CREATE TABLE user ( id VARCHAR(15) NOT NULL PRIMARY KEY,