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.
This commit is contained in:
Reto Brunner 2022-12-28 13:43:03 +01:00
parent c2e7390127
commit 25642fbe98

View file

@ -48,29 +48,6 @@ describe("SQLite Message Storage", function () {
store.isEnabled = true; 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) { it("should insert schema version to options table", function (done) {
store.database.get( store.database.get(
"SELECT value FROM options WHERE name = 'schema_version'", "SELECT value FROM options WHERE name = 'schema_version'",