fix: update the test

This commit is contained in:
leonace924 2026-01-06 02:11:49 -05:00
parent c7702a3b23
commit 806dadce5c
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class MssqlMonitorType extends MonitorType {
}
const conditions = ConditionExpressionGroup.fromMonitor(monitor);
const hasConditions = conditions && conditions.length > 0;
const hasConditions = conditions !== null;
const startTime = dayjs().valueOf();
try {

View File

@ -29,7 +29,7 @@ class MysqlMonitorType extends MonitorType {
const password = monitor.radiusPassword;
const conditions = ConditionExpressionGroup.fromMonitor(monitor);
const hasConditions = conditions && conditions.length > 0;
const hasConditions = conditions !== null;
const startTime = dayjs().valueOf();
try {

View File

@ -172,7 +172,7 @@ describe(
await assert.rejects(
mssqlMonitor.check(monitor, heartbeat, {}),
new Error(
"Query result (99) did not meet the specified conditions"
"Query result did not meet the specified conditions (99)"
)
);
assert.strictEqual(