Skip to content

Commit 0a84a19

Browse files
committed
Add beforeEach & fix unsafeProxy.
1 parent d6f2538 commit 0a84a19

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/suites/algorithms.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ export function commonAlgorithms({
3838
mandatoryPointers
3939
});
4040
});
41+
beforeEach(function() {
42+
this.currentTest.cell = {
43+
rowId: this.currentTest.title,
44+
columnId: this.currentTest.parent.title
45+
};
46+
});
4147
it('When generating ECDSA signatures, the signature value MUST be ' +
4248
'expressed according to section 7 of [RFC4754] (sometimes referred ' +
4349
'to as the IEEE P1363 format) and encoded according to the specific ' +
@@ -254,7 +260,7 @@ function unsafeProxy(suite) {
254260
get(target, prop) {
255261
if(prop === 'canonize') {
256262
return function(doc, options) {
257-
return suite._cryptosuite.canonize(doc, {...options, safe: false});
263+
return target.canonize(doc, {...options, safe: false});
258264
};
259265
}
260266
return Reflect.get(...arguments);
@@ -265,7 +271,7 @@ function unsafeProxy(suite) {
265271
get(target, prop) {
266272
if(prop === 'canonize') {
267273
return function(doc, options) {
268-
return suite.canonize(doc, {...options, safe: false});
274+
return target.canonize(doc, {...options, safe: false});
269275
};
270276
}
271277
return Reflect.get(...arguments);

0 commit comments

Comments
 (0)