mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
change utest
This commit is contained in:
parent
4c63cdcadb
commit
a30cc243a6
@ -94,19 +94,15 @@ async function _main() {
|
||||
await server.initialize()
|
||||
await clientBridge.initialize()
|
||||
|
||||
// const test = await clientBridge.endpoints.get.test()
|
||||
// const crashTest = await clientBridge.endpoints.get.crashtest().catch(error => {
|
||||
// console.log(error)
|
||||
// return false
|
||||
// })
|
||||
// const deleteTest = await clientBridge.endpoints.delete.test({
|
||||
// a: "test"
|
||||
// })
|
||||
const test = await clientBridge.endpoints.get.test()
|
||||
const crashTest = await clientBridge.endpoints.get.crashtest().catch(error => {
|
||||
console.log(error)
|
||||
return "Crash test passed!"
|
||||
})
|
||||
const wsEpicEvent = await clientBridge.wsEndpoints.epicEvent("Hello", "World")
|
||||
|
||||
// console.log(`[get.test] > ${test}`)
|
||||
// console.log(`[get.crashtest] > ${crashTest}`)
|
||||
// console.log(`[delete.test] > ${deleteTest}`)
|
||||
console.log(`[get.test] > ${test}`)
|
||||
console.log(`[get.crashtest] > ${crashTest}`)
|
||||
console.log(`[ws.epicEvent] > ${wsEpicEvent}`)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user