From 6aa346a39538ee7eaa0247d92c736dd66f97b646 Mon Sep 17 00:00:00 2001 From: Benjamin Weder Date: Fri, 17 May 2024 15:22:59 +0200 Subject: [PATCH] Add test case loading pattern-based QRMs --- .../bpmn-q/test/tests/pattern/pattern-qrms-spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 components/bpmn-q/test/tests/pattern/pattern-qrms-spec.js diff --git a/components/bpmn-q/test/tests/pattern/pattern-qrms-spec.js b/components/bpmn-q/test/tests/pattern/pattern-qrms-spec.js new file mode 100644 index 00000000..b6fcbc95 --- /dev/null +++ b/components/bpmn-q/test/tests/pattern/pattern-qrms-spec.js @@ -0,0 +1,9 @@ +import chai from "chai"; +import { getPatternSolutionQRMs } from "../../../modeler-component/extensions/quantme/qrm-manager/qrm-handler"; +describe("Test the pattern plugin", function () { + it("Should load solutions as QRMs", async function () { + const patternQRMs = await getPatternSolutionQRMs(); + + chai.expect(patternQRMs.length).to.equal(4); + }); +});