mirror of
https://github.com/thelounge/thelounge
synced 2024-11-12 23:37:08 +00:00
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:
parent
c2e7390127
commit
25642fbe98
1 changed files with 0 additions and 23 deletions
|
@ -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'",
|
||||
|
|
Loading…
Reference in a new issue