From 25642fbe98980280b8d908a41efdcd72d6972967 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Wed, 28 Dec 2022 13:43:03 +0100 Subject: [PATCH] sqlite: delete table creation test This just repeats the hard coded values from the code, which is not helping. We need to touch that test whenever we modify the sql which is undesired and it doesn't test any useful functionality. Any error that may ensue would hopefully be tracked by the other test. --- test/plugins/sqlite.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/test/plugins/sqlite.ts b/test/plugins/sqlite.ts index 16c832f1..a3c939e7 100644 --- a/test/plugins/sqlite.ts +++ b/test/plugins/sqlite.ts @@ -48,29 +48,6 @@ describe("SQLite Message Storage", function () { store.isEnabled = true; }); - it("should create tables", function (done) { - store.database.all( - "SELECT name, tbl_name, sql FROM sqlite_master WHERE type = 'table'", - (err, row) => { - expect(err).to.be.null; - expect(row).to.deep.equal([ - { - name: "options", - tbl_name: "options", - sql: "CREATE TABLE options (name TEXT, value TEXT, CONSTRAINT name_unique UNIQUE (name))", - }, - { - name: "messages", - tbl_name: "messages", - sql: "CREATE TABLE messages (network TEXT, channel TEXT, time INTEGER, type TEXT, msg TEXT)", - }, - ]); - - done(); - } - ); - }); - it("should insert schema version to options table", function (done) { store.database.get( "SELECT value FROM options WHERE name = 'schema_version'",