mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 09:13:21 +00:00
one assert per testcase
This commit is contained in:
@@ -11,9 +11,8 @@ class WebSocketMonitorType extends MonitorType {
|
||||
async check(monitor, heartbeat, _server) {
|
||||
const [ message, code ] = await this.attemptUpgrade(monitor);
|
||||
heartbeat.status = code === 1000 ? UP : DOWN;
|
||||
//heartbeat.msg = message;
|
||||
heartbeat.msg = code; //unit testing
|
||||
console.log(message); //temporary test to pass eslint check
|
||||
heartbeat.msg = message;
|
||||
console.log(code, message); //temp unit testing
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user