Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
Octo8080X committed Jan 2, 2024
1 parent eda1ea2 commit e95559b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
deno.json
tests/work/
node_modules/
node_modules/
.env
7 changes: 1 addition & 6 deletions tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Deno.test("Response Test", async (t) => {
// });
});

Deno.test(
await Deno.test(
{
name: "Login test",
async fn(t) {
Expand Down Expand Up @@ -142,11 +142,6 @@ Deno.test(
});

await t.step("Logout", async () => {
// const formData = new FormData();
// formData.append("csrf", csrfToken);
// formData.append("email", "[email protected]");
// formData.append("password", "password");

const headers = new Headers();
headers.set("cookie", `auth_session=${authSession}`);

Expand Down
6 changes: 3 additions & 3 deletions tests/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e95559b

Please sign in to comment.