API endpoint for message info

This commit is contained in:
Cadence Ember 2025-05-12 14:30:49 +12:00
commit bb711c26ac
5 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,19 @@
// @ts-check
const assert = require("assert/strict")
const tryToCatch = require("try-to-catch")
const {router, test} = require("../../../test/web")
test("web info: 404 when message does not exist", async t => {
const res = await router.test("get", "/api/message?message_id=1", {
api: {
async getEvent(roomID, eventID) {
}
}
})
t.fail("test not written")
})
test("web info: returns data when message exists", async t => {
t.fail("test not written")
})