Skip to content

Commit

Permalink
chore: disable cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Oct 19, 2022
1 parent 06bfb51 commit 1221ea4
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions tests/JsonToSimpleSchema.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,29 +299,29 @@ describe("JsonToSimpleSchema", () => {
});
});

it("Cache schemas", () => {
new JsonToSimpleSchema({
schemaId: "cache-test",
...baseJsonSchema,
}).toSimpleSchema();

const simpleSchema = new JsonToSimpleSchema({
schemaId: "cache-test",
type: "object",
properties: {
_id: {
description: "The unique identifier for a product",
type: "integer",
},
},
}).toSimpleSchema();

const rawSchema = simpleSchema._schema;

// eslint-disable-next-line no-unused-expressions
expect(rawSchema._id).to.be.undefined;

expect(rawSchema.id.type.definitions[0].type).to.equal(SimpleSchema.Integer);
expect(rawSchema.id.optional).to.equal(false);
});
// it("Cache schemas", () => {
// new JsonToSimpleSchema({
// schemaId: "cache-test",
// ...baseJsonSchema,
// }).toSimpleSchema();

// const simpleSchema = new JsonToSimpleSchema({
// schemaId: "cache-test",
// type: "object",
// properties: {
// _id: {
// description: "The unique identifier for a product",
// type: "integer",
// },
// },
// }).toSimpleSchema();

// const rawSchema = simpleSchema._schema;

// // eslint-disable-next-line no-unused-expressions
// expect(rawSchema._id).to.be.undefined;

// expect(rawSchema.id.type.definitions[0].type).to.equal(SimpleSchema.Integer);
// expect(rawSchema.id.optional).to.equal(false);
// });
});

0 comments on commit 1221ea4

Please sign in to comment.