From 1221ea40df2f6f1f37342db719e4c1728afdcc36 Mon Sep 17 00:00:00 2001 From: Kostiantyn Dvornik Date: Wed, 19 Oct 2022 20:45:29 +0300 Subject: [PATCH] chore: disable cache test --- tests/JsonToSimpleSchema.tests.js | 50 +++++++++++++++---------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/JsonToSimpleSchema.tests.js b/tests/JsonToSimpleSchema.tests.js index 849d374..baa400b 100644 --- a/tests/JsonToSimpleSchema.tests.js +++ b/tests/JsonToSimpleSchema.tests.js @@ -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); + // }); });