From f37ae0efdbabce78f3dd79949c64534f23e87830 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Mon, 9 Dec 2024 19:03:24 +0100 Subject: [PATCH] test: verify incompatible templates are ignored --- .../ElementTemplates.spec.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/spec/cloud-element-templates/ElementTemplates.spec.js b/test/spec/cloud-element-templates/ElementTemplates.spec.js index 0ba6e88..456b1ad 100644 --- a/test/spec/cloud-element-templates/ElementTemplates.spec.js +++ b/test/spec/cloud-element-templates/ElementTemplates.spec.js @@ -492,6 +492,21 @@ describe('provider/cloud-element-templates - ElementTemplates', function() { })); + it('should ignore incompatible', inject(function(elementTemplates) { + + // given + elementTemplates.setEngines({ + camunda: '8.4' + }); + + // when + const templates = elementTemplates.getLatest('example.engines.test.multiple'); + + // then + expect(templates).to.be.empty; + })); + + it('should handle broken provided at run-time', inject(function(elementTemplates) { // given