Skip to content

Commit

Permalink
debug: coming back to main branch
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <tokesh789@gmail.com>
  • Loading branch information
Tokesh committed Jan 18, 2025
1 parent 59dd87b commit 44f2a2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tools/src/_utils/AjvErrorsParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export default class AjvErrorsParser {
}

parse(errors: ErrorObject[] | undefined | null): string {
const error_groups = this.#group_errors(errors ?? []);
const error_groups = this.#group_errors(errors ?? [])
const parsed_errors = [
this.#prohibited_property_error(error_groups.prohibited),
this.#required_property_error(error_groups.required),
this.#enum_error(error_groups.enum),
...error_groups.others
].filter(e => e != null) as ErrorObject[];
return this.ajv.errorsText(parsed_errors, this.options);
}
].filter(e => e != null) as ErrorObject[]
return this.ajv.errorsText(parsed_errors, this.options)
}

#group_errors(errors: ErrorObject[]): GroupedErrors {
const categories = {
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/tester/StoryValidator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const validator = new StoryValidator()

function validate(path: string): StoryEvaluation | undefined {
const story: ParsedStory = StoryParser.parse(read_yaml(path))
return validator.validate({ story, display_path: path, full_path: path });
return validator.validate({ story, display_path: path, full_path: path })
}

describe('StoryValidator', () => {
Expand Down

0 comments on commit 44f2a2e

Please sign in to comment.