one assert per testcase

This commit is contained in:
PoleTransformer
2025-02-18 16:29:19 -08:00
parent 725892c901
commit 492d9f503f
2 changed files with 33 additions and 17 deletions
+2 -3
View File
@@ -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
}
/**