mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 12:22:50 +02:00
Update dependencies
This commit is contained in:
parent
106aea4031
commit
160efc5592
8 changed files with 370 additions and 262 deletions
|
@ -35,8 +35,7 @@ const setPresence = sync.require("./actions/set-presence")
|
|||
/** @type {import("../m2d/event-dispatcher")} */
|
||||
const matrixEventDispatcher = sync.require("../m2d/event-dispatcher")
|
||||
|
||||
/** @type {any} */ // @ts-ignore bad types from semaphore
|
||||
const Semaphore = require("@chriscdn/promise-semaphore")
|
||||
const {Semaphore} = require("@chriscdn/promise-semaphore")
|
||||
const checkMissedPinsSema = new Semaphore()
|
||||
|
||||
// Grab Discord events we care about for the bridge, check them, and pass them on
|
||||
|
|
|
@ -22,7 +22,7 @@ test("log in with matrix: checks if mxid format looks valid", async t => {
|
|||
mxid: "x@cadence:cadence.moe"
|
||||
}
|
||||
}))
|
||||
t.equal(error.data.issues[0].validation, "regex")
|
||||
t.match(error.data.fieldErrors.mxid, /must match pattern/)
|
||||
})
|
||||
|
||||
test("log in with matrix: checks if mxid domain format looks valid", async t => {
|
||||
|
@ -31,7 +31,7 @@ test("log in with matrix: checks if mxid domain format looks valid", async t =>
|
|||
mxid: "@cadence:cadence."
|
||||
}
|
||||
}))
|
||||
t.equal(error.data.issues[0].validation, "regex")
|
||||
t.match(error.data.fieldErrors.mxid, /must match pattern/)
|
||||
})
|
||||
|
||||
test("log in with matrix: sends message when there is no m.direct data", async t => {
|
||||
|
|
|
@ -27,7 +27,7 @@ const schema = {
|
|||
token: z.object({
|
||||
token_type: z.string(),
|
||||
access_token: z.string(),
|
||||
expires_in: z.number({coerce: true}),
|
||||
expires_in: z.coerce.number(),
|
||||
refresh_token: z.string(),
|
||||
scope: z.string()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue