Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Jul 3, 2024
1 parent 9528804 commit 07ec061
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions specs/SubtreeValidationSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@ import { ValidationResult } from "../src/validation/ValidationResult";
/**
* Validate the specified subtree file from the `specs/data/subtrees`
* directory.
*
*
* Note that in order to validate a subtree file, the validator requires
* additional data elements. Namely, the `TileImplicitTiling` that
* additional data elements. Namely, the `TileImplicitTiling` that
* defines the structure of the subtree, and a `Schema` (if the
* subtree contains metadata).
*
*
* This function will load this data from the additional files in
* the `specs/data/` directory that define the same structure for
* all subtree spec files.
*
*
* @param fileName - The subtree file name
* @returns A promise to the `ValidationResult`
*/
async function validateSpecSubtreeFile(fileName: string): Promise<ValidationResult> {
async function validateSpecSubtreeFile(
fileName: string
): Promise<ValidationResult> {
// The schema for the subtrees in the specs directory
const specSchema: Schema = await readJsonUnchecked(
"specs/data/schemas/validSchema.json"
Expand All @@ -46,7 +48,6 @@ async function validateSpecSubtreeFile(fileName: string): Promise<ValidationResu
return validationResult;
}


describe("Subtree validation", function () {
it("detects issues in binarySubtreeComputedLengthInvalid", async function () {
const result = await validateSpecSubtreeFile(
Expand Down Expand Up @@ -388,5 +389,4 @@ describe("Subtree validation", function () {
);
expect(result.length).toEqual(0);
});

});

0 comments on commit 07ec061

Please sign in to comment.