From 318fb929b3e43fa1d78d3d6ccf06ffc3b8436430 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Mon, 11 Nov 2024 16:39:00 +0000 Subject: [PATCH] Add beforeEach & fix unsafeProxy. --- tests/suites/algorithms.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/suites/algorithms.js b/tests/suites/algorithms.js index 8791e26c..1984ada2 100644 --- a/tests/suites/algorithms.js +++ b/tests/suites/algorithms.js @@ -38,6 +38,12 @@ export function commonAlgorithms({ mandatoryPointers }); }); + beforeEach(function() { + this.currentTest.cell = { + rowId: this.currentTest.title, + columnId: this.currentTest.parent.title + }; + }); it('When generating ECDSA signatures, the signature value MUST be ' + 'expressed according to section 7 of [RFC4754] (sometimes referred ' + 'to as the IEEE P1363 format) and encoded according to the specific ' + @@ -254,7 +260,7 @@ function unsafeProxy(suite) { get(target, prop) { if(prop === 'canonize') { return function(doc, options) { - return suite._cryptosuite.canonize(doc, {...options, safe: false}); + return target.canonize(doc, {...options, safe: false}); }; } return Reflect.get(...arguments); @@ -265,7 +271,7 @@ function unsafeProxy(suite) { get(target, prop) { if(prop === 'canonize') { return function(doc, options) { - return suite.canonize(doc, {...options, safe: false}); + return target.canonize(doc, {...options, safe: false}); }; } return Reflect.get(...arguments);