From d1c2c3fbab1837c25330ffc75dd39000521673e0 Mon Sep 17 00:00:00 2001 From: harshitha-cstk Date: Mon, 16 Mar 2026 11:14:23 +0530 Subject: [PATCH 1/2] comment test for publishing with api_version in terms-test.js --- test/sanity-check/api/terms-test.js | 57 +++++++++++++++-------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/test/sanity-check/api/terms-test.js b/test/sanity-check/api/terms-test.js index 6e4be208..1b711a39 100644 --- a/test/sanity-check/api/terms-test.js +++ b/test/sanity-check/api/terms-test.js @@ -129,34 +129,35 @@ describe('Terms API Test', () => { .catch(done) }) - it.skip('should publish with api_version', done => { - const publishData = { - locales: ['en-us'], - environments: ['development'], - items: [ - { - uid: taxonomy.uid, - term_uid: 'term_test' - }, - { - uid: taxonomy.uid, - term_uid: 'term_test_child1' - }, - { - uid: taxonomy.uid, - term_uid: 'term_test_child2' - } - ] - } - makeTaxonomy() - .publish(publishData, '3.2') - .then((response) => { - expect(response.notice).to.not.equal(null) - expect(response.job_id).to.not.equal(undefined) - done() - }) - .catch(done) - }) + // TODO: This test is to be uncommented after the feature is enabled + // it('should publish with api_version', done => { + // const publishData = { + // locales: ['en-us'], + // environments: ['development'], + // items: [ + // { + // uid: taxonomy.uid, + // term_uid: 'term_test' + // }, + // { + // uid: taxonomy.uid, + // term_uid: 'term_test_child1' + // }, + // { + // uid: taxonomy.uid, + // term_uid: 'term_test_child2' + // } + // ] + // } + // makeTaxonomy() + // .publish(publishData, '3.2') + // .then((response) => { + // expect(response.notice).to.not.equal(null) + // expect(response.job_id).to.not.equal(undefined) + // done() + // }) + // .catch(done) + // }) it('should search the term with the string passed', done => { makeTerms(taxonomy.uid).search(termString) From 6f4045a6050838a0f3242c8b4ad5ee5dce0c137a Mon Sep 17 00:00:00 2001 From: harshitha-cstk Date: Mon, 16 Mar 2026 11:17:14 +0530 Subject: [PATCH 2/2] Refactor terms-test.js by commenting out unused makeTaxonomy function to improve code clarity. --- test/sanity-check/api/terms-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sanity-check/api/terms-test.js b/test/sanity-check/api/terms-test.js index 1b711a39..fde8974d 100644 --- a/test/sanity-check/api/terms-test.js +++ b/test/sanity-check/api/terms-test.js @@ -227,9 +227,9 @@ function makeTerms (taxonomyUid, termUid = null) { return client.stack({ api_key: process.env.API_KEY }).taxonomy(taxonomyUid).terms(termUid) } -function makeTaxonomy () { - return client.stack({ api_key: process.env.API_KEY }).taxonomy() -} +// function makeTaxonomy () { +// return client.stack({ api_key: process.env.API_KEY }).taxonomy() +// } describe('Terms Query Parameters Sanity Tests', () => { beforeEach(async () => {