mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-22 19:45:56 +00:00
increase test verbosity
This commit is contained in:
parent
bf17e24c79
commit
725892c901
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,6 @@
|
||||||
const { MonitorType } = require("./monitor-type");
|
const { MonitorType } = require("./monitor-type");
|
||||||
const WebSocket = require("ws");
|
const WebSocket = require("ws");
|
||||||
const { UP, DOWN } = require("../../src/util");
|
const { UP, DOWN } = require("../../src/util");
|
||||||
const childProcessAsync = require("promisify-child-process");
|
|
||||||
|
|
||||||
class WebSocketMonitorType extends MonitorType {
|
class WebSocketMonitorType extends MonitorType {
|
||||||
name = "websocket-upgrade";
|
name = "websocket-upgrade";
|
||||||
|
@ -14,6 +13,7 @@ class WebSocketMonitorType extends MonitorType {
|
||||||
heartbeat.status = code === 1000 ? UP : DOWN;
|
heartbeat.status = code === 1000 ? UP : DOWN;
|
||||||
//heartbeat.msg = message;
|
//heartbeat.msg = message;
|
||||||
heartbeat.msg = code; //unit testing
|
heartbeat.msg = code; //unit testing
|
||||||
|
console.log(message); //temporary test to pass eslint check
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue