diff options
author | Marvin Borner | 2020-07-18 21:55:14 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-18 21:55:14 +0200 |
commit | e02dcccb0538ec36b4d14003a20f62ac318b8f94 (patch) | |
tree | 258d72b4fa0ef76e12b7cfe5252f2d2c6dfcbc69 /test | |
parent | 985763e3fcb6762fa76b81c059a97648905b3761 (diff) |
Removed useless TODOs
Diffstat (limited to 'test')
-rw-r--r-- | test/database_test.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/database_test.ts b/test/database_test.ts index bc5611b..145e0b9 100644 --- a/test/database_test.ts +++ b/test/database_test.ts @@ -11,7 +11,7 @@ Deno.test("database connection", async () => { Deno.test({ name: "database initialization", - sanitizeResources: false, + sanitizeResources: false, // TODO: Previous bug! async fn() { await controller.init(); }, @@ -19,7 +19,7 @@ Deno.test({ Deno.test({ name: "database table creation", - sanitizeResources: false, + sanitizeResources: false, // TODO: Previous bug! async fn() { await controller.execute("DROP TABLE IF EXISTS test"); await controller.execute("CREATE TABLE test (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(16) UNIQUE)"); @@ -28,7 +28,7 @@ Deno.test({ Deno.test({ name: "database variable arguments", - sanitizeResources: false, + sanitizeResources: false, // TODO: Previous bug! async fn() { await controller.execute("INSERT INTO test(name) VALUES(?)", ["Melvin"]); assertThrowsAsync( @@ -42,7 +42,7 @@ Deno.test({ Deno.test({ name: "database multiple statements", - sanitizeResources: false, + sanitizeResources: false, // TODO: Previous bug! async fn() { await controller.execute_multiple([ ["DELETE FROM test WHERE ?? = ?", ["name", "Melvin"]], @@ -53,7 +53,7 @@ Deno.test({ Deno.test({ name: "database select statements", - sanitizeResources: false, + sanitizeResources: false, // TODO: Previous bug! async fn() { const element = await controller.query("SELECT ?? FROM ?? WHERE id=?", ["name", "test", "4"]); assert(element[0].name == "Melvin"); @@ -62,9 +62,9 @@ Deno.test({ Deno.test({ name: "database select statements", - sanitizeResources: false, + sanitizeResources: false, // TODO: Previous bug! async fn() { - await controller.execute("DROP TABLE test"); - await controller.close(); + //await controller.execute("DROP TABLE test"); + await controller.close(); // TODO: Fix 'Bad resource ID'! }, }); |