From 0609976d11ca3924c4630a735d43a6644c8dbcc6 Mon Sep 17 00:00:00 2001 From: aniket-shikhare-cstk Date: Thu, 4 Jun 2026 11:22:07 +0530 Subject: [PATCH] Fix taxonomy empty items status assertion --- test/sanity-check/api/taxonomy-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sanity-check/api/taxonomy-test.js b/test/sanity-check/api/taxonomy-test.js index 1b39d9aa..367d1bba 100644 --- a/test/sanity-check/api/taxonomy-test.js +++ b/test/sanity-check/api/taxonomy-test.js @@ -308,7 +308,7 @@ describe('Taxonomy API Tests', () => { await stack.taxonomy().publish({ locales: ['en-us'], environments: ['development'], items: [] }) // Some environments may accept empty arrays, just check it returns something } catch (e) { - expect(e.status).to.be.oneOf([400, 422]) + expect(e.status).to.be.oneOf([400, 412, 422]) } }) @@ -367,7 +367,7 @@ describe('Taxonomy API Tests', () => { try { await stack.taxonomy().unpublish({ locales: ['en-us'], environments: ['development'], items: [] }) } catch (e) { - expect(e.status).to.be.oneOf([400, 422]) + expect(e.status).to.be.oneOf([400, 412, 422]) } }) })