feat: ValueMatcher 支持 primitive 原始值简写,等价于 { equals: value }
This commit is contained in:
@@ -49,13 +49,13 @@ describe("validateDbConfig", () => {
|
||||
expect(unknownError!.code).toBe("unknown-field");
|
||||
});
|
||||
|
||||
test("expect.durationMs 非 matcher 返回错误", () => {
|
||||
test("expect.durationMs 数组简写返回错误", () => {
|
||||
const result = validateDbConfig({
|
||||
defaults: {},
|
||||
targets: [
|
||||
{
|
||||
db: { url: "sqlite://:memory:" },
|
||||
expect: { durationMs: "invalid" },
|
||||
expect: { durationMs: [1, 2] },
|
||||
id: "test",
|
||||
name: "test",
|
||||
type: "db",
|
||||
|
||||
Reference in New Issue
Block a user