File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
tests/src/schema/providers Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ export class InputProvider extends BaseProvider {
3232 */
3333 static validate ( schemaItem , path ) {
3434 return ValidationResult . from ( [
35- { condition : is . not . empty ( schemaItem . field ) , message : "Field is required" } ,
36- { condition : is . not . empty ( schemaItem . title ) , message : "Type is required" } ,
35+ { condition : is . not . empty ( schemaItem . field ) , message : '"field" is required' } ,
36+ { condition : is . not . empty ( schemaItem . title ) , message : '"title" is required' } ,
3737 ] , "InputProvider" , path ) ;
3838 }
3939
Original file line number Diff line number Diff line change 11import { InputProvider } from "../../../../src/schema/providers/input.js" ;
22import { ValidationResult } from "../../../../src/schema/validation-result.js" ;
3- import { assertEquals , assert } from "jsr:@std/assert" ;
4-
3+ import { assertEquals , assert , assertExists } from "jsr:@std/assert" ;
4+ import "../../../src/validate/conditions.test.js" ;
5+ import "../../../src/system/assert.test.js" ;
56
67Deno . test ( "InputProvider:parse" , async ( ) => {
78 const result = await InputProvider . parse ( {
You can’t perform that action at this time.
0 commit comments