force override server_origin during testing
This commit is contained in:
parent
714c31d230
commit
47b8d44010
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,9 @@ const config = require("../config")
|
|||
const passthrough = require("../passthrough")
|
||||
const db = new sqlite(":memory:")
|
||||
|
||||
const reg = require("../matrix/read-registration")
|
||||
reg.ooye.server_origin = "https://matrix.cadence.moe" // so that tests will pass even when hard-coded
|
||||
|
||||
db.exec(fs.readFileSync("db/ooye-schema.sql", "utf8"))
|
||||
db.exec(fs.readFileSync("db/ooye-test-data.sql", "utf8"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue