Cannabis Freedom Index

Changelog b5d9ae0tree

Paraguay and Malta: point product assertions at the folded medical section

The profiles no longer have context.products, so the #160/#178 test read an undefined block. The assertions now read the medical section that holds the same sentences.

1 file of code, design or docs +3 −3 lines

Code, design and documents 1 file

scripts/profile-claims.test.mjs +3 −3
@@ -294,7 +294,7 @@ test('new pilot and resin permissions are recorded without inventing broad retai
   const py = country('py'), mt = country('mt'), history = events();
   assert.match(py.context.medical.text, /488\/2025.*19 December 2025.*two-year.*pilot/);
-  assert.match(py.context.products.text, /do not demonstrate.*currently in stock/);
-  assert.match(mt.context.products.text, /solid solventless.*processing authorisation/);
-  assert.match(mt.context.products.text, /33%.*34–66%.*above 66%/);
+  assert.match(py.context.medical.text, /do not demonstrate.*currently in stock/);
+  assert.match(mt.context.medical.text, /solid solventless.*processing authorisation/);
+  assert.match(mt.context.medical.text, /33%.*34–66%.*above 66%/);
   for (const id of ['paraguay-medicinal-cannabinoid-pilot-2025', 'malta-solventless-resin-permission-2025']) {
     const e = history.find((e) => e.id === id);

    ↑↓ to move, ↵ to open.