Cannabis Freedom Index

Changelog d93a1abtree

Costa Rica: point stocked-products assertion at the folded medical section

Commit 8210dda folded context.products into context.medical but left the #159 test reading context.products, so npm test failed and blocked every build. The assertion now reads the section that holds the sentence.

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

Code, design and documents 1 file

scripts/profile-claims.test.mjs +1 −1
@@ -311,5 +311,5 @@ test('Costa Rica permissions do not establish stocked THC patient medicines (#15
   assert.match(cr.context.medical.text, /Routine pharmacy availability.*has not been established/);
   assert.match(cr.context.medical.text, /personal imports.*unregistered/);
-  assert.match(cr.context.products.text, /pharmacy-made.*exempt.*registration/);
+  assert.match(cr.context.medical.text, /pharmacy-made.*exempt.*registration/);
   assert.match(cr.answers.buy.text, /has not been verified/);
   const e = events().find((e) => e.id === 'costa-rica-medical-2022');

    ↑↓ to move, ↵ to open.