Skip to content

Commit

Permalink
chore: remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Feb 28, 2024
1 parent ed962cc commit 36ab980
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion src/py/mat3ra/esse/data/schemas.py

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions tests/js/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,3 @@ describe("schema titles must be unique or empty", () => {
// eslint-disable-next-line no-unused-expressions
expect(repeatedSchemaTitles).to.be.an("array").that.is.empty;
});

describe("default", () => {
JSONSchemasInterface.setSchemaFolder(schemasPath);
const schema = JSONSchemasInterface.getSchemaById("job/compute");
const example = JSON.parse(
fs.readFileSync(path.join(examplesPath, "job/compute.json")).toString(),
) as object;
if (schema) {
// @ts-ignore
const { arguments: args, ...restExample } = example;
console.log({
restExample,
args,
});
ajv.validate(restExample, schema);
console.log({
restExample,
example,
});
}
});

0 comments on commit 36ab980

Please sign in to comment.