feat: ValueMatcher 支持 primitive 原始值简写,等价于 { equals: value }
This commit is contained in:
@@ -213,12 +213,12 @@ describe("validateUdpConfig", () => {
|
||||
expect(issues.some((i) => i.path.includes("responded") && i.message.includes("响应来源"))).toBe(true);
|
||||
});
|
||||
|
||||
it("reports invalid-type for non-matcher expect.durationMs", () => {
|
||||
it("reports invalid-type for array shorthand expect.durationMs", () => {
|
||||
const issues = validateUdpConfig(
|
||||
makeInput({
|
||||
targets: [
|
||||
{
|
||||
expect: { durationMs: -100 },
|
||||
expect: { durationMs: [1, 2] },
|
||||
id: "test",
|
||||
type: "udp",
|
||||
udp: { host: "127.0.0.1", port: 53 },
|
||||
|
||||
Reference in New Issue
Block a user