From 9c7d0b09b8fb19c8685ac3e4ccfe7f7c83402e90 Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Thu, 8 Apr 2021 11:10:29 +0100 Subject: [PATCH] fix test --- .../tc-schema-sdk/__tests__/test-schema-properties.spec.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/tc-schema-sdk/__tests__/test-schema-properties.spec.js b/packages/tc-schema-sdk/__tests__/test-schema-properties.spec.js index 87d829d1..7b494ce7 100644 --- a/packages/tc-schema-sdk/__tests__/test-schema-properties.spec.js +++ b/packages/tc-schema-sdk/__tests__/test-schema-properties.spec.js @@ -95,7 +95,6 @@ const schemaFixture = { }; describe('test schema properties', () => { - // Note that this behaviour is the opposite as tc-schema-publisher // This is because, consider teh test environment: // 1. tc-schema-publisher explicitly publishes including test properties @@ -104,7 +103,6 @@ describe('test schema properties', () => { it('includes test properties by default', async () => { const schema = new SDK({ schemaData: { schema: schemaFixture }, - includeTestDefinitions: true, }); await schema.ready(); expect(schema.getTypes().length).toEqual(2); @@ -129,7 +127,10 @@ describe('test schema properties', () => { }); it('excludes test properties on demand', async () => { - const schema = new SDK({ schemaData: { schema: schemaFixture } }); + const schema = new SDK({ + schemaData: { schema: schemaFixture }, + includeTestDefinitions: false, + }); await schema.ready(); expect(schema.getTypes().length).toEqual(1); expect(schema.getTypes()[0].name).toEqual('TypeA');