9
9
getProofs ,
10
10
isValidDatetime ,
11
11
isValidUtf8 ,
12
- setupMatrix ,
12
+ setupReportableTestSuite ,
13
13
setupRow
14
14
} from '../helpers.js' ;
15
15
import chai from 'chai' ;
@@ -20,7 +20,7 @@ export function ecdsaJcs2019Algorithms() {
20
20
const { tags} = config . suites [
21
21
cryptosuite
22
22
] ;
23
- const { issuerMatch } = endpoints . filterByTag ( {
23
+ const { match : issuers } = endpoints . filterByTag ( {
24
24
tags : [ ...tags ] ,
25
25
property : 'issuers'
26
26
} ) ;
@@ -31,12 +31,12 @@ export function ecdsaJcs2019Algorithms() {
31
31
const should = chai . should ( ) ;
32
32
33
33
describe ( 'ecdsa-jcs-2019 - Algorithms - Transformation' , function ( ) {
34
- setupMatrix . call ( this , issuerMatch ) ;
34
+ setupReportableTestSuite ( this ) ;
35
35
let validCredential ;
36
36
before ( async function ( ) {
37
37
validCredential = await createValidCredential ( ) ;
38
38
} ) ;
39
- for ( const [ columnId , { endpoints} ] of issuerMatch ) {
39
+ for ( const [ columnId , { endpoints} ] of issuers ) {
40
40
describe ( columnId , function ( ) {
41
41
const [ issuer ] = endpoints ;
42
42
let issuedVc ;
@@ -99,21 +99,21 @@ export function ecdsaJcs2019Algorithms() {
99
99
'Expected a cryptosuite identifier on the proof.' ) ;
100
100
proof . type . should . equal ( 'DataIntegrityProof' ,
101
101
'Expected DataIntegrityProof type.' ) ;
102
- proof . cryptosuite . should . equal ( 'ecdsa-jcs-2022 ' ,
103
- 'Expected ecdsa-jcs-2022 cryptosuite.' ) ;
102
+ proof . cryptosuite . should . equal ( 'ecdsa-jcs-2019 ' ,
103
+ 'Expected ecdsa-jcs-2019 cryptosuite.' ) ;
104
104
}
105
105
} ) ;
106
106
} ) ;
107
107
}
108
108
} ) ;
109
109
110
110
describe ( 'ecdsa-jcs-2019 - Algorithms - Proof Configuration' , function ( ) {
111
- setupMatrix . call ( this , issuerMatch ) ;
111
+ setupReportableTestSuite ( this ) ;
112
112
let validCredential ;
113
113
before ( async function ( ) {
114
114
validCredential = await createValidCredential ( ) ;
115
115
} ) ;
116
- for ( const [ columnId , { endpoints} ] of issuerMatch ) {
116
+ for ( const [ columnId , { endpoints} ] of issuers ) {
117
117
describe ( columnId , function ( ) {
118
118
const [ issuer ] = endpoints ;
119
119
let issuedVc ;
@@ -162,8 +162,8 @@ export function ecdsaJcs2019Algorithms() {
162
162
'Expected a cryptosuite identifier on the proof.' ) ;
163
163
proof . type . should . equal ( 'DataIntegrityProof' ,
164
164
'Expected DataIntegrityProof type.' ) ;
165
- proof . cryptosuite . should . equal ( 'ecdsa-jcs-2022 ' ,
166
- 'Expected ecdsa-jcs-2022 cryptosuite.' ) ;
165
+ proof . cryptosuite . should . equal ( 'ecdsa-jcs-2019 ' ,
166
+ 'Expected ecdsa-jcs-2019 cryptosuite.' ) ;
167
167
}
168
168
} ) ;
169
169
it ( 'If proofConfig.created is set and if the value is not a ' +
@@ -185,12 +185,12 @@ export function ecdsaJcs2019Algorithms() {
185
185
} ) ;
186
186
187
187
describe ( 'ecdsa-jcs-2019 - Algorithms - Transformation' , function ( ) {
188
- setupMatrix . call ( this , issuerMatch ) ;
188
+ setupReportableTestSuite ( this ) ;
189
189
let validCredential ;
190
190
before ( async function ( ) {
191
191
validCredential = await createValidCredential ( ) ;
192
192
} ) ;
193
- for ( const [ columnId , { endpoints} ] of issuerMatch ) {
193
+ for ( const [ columnId , { endpoints} ] of issuers ) {
194
194
describe ( columnId , function ( ) {
195
195
const [ issuer ] = endpoints ;
196
196
let issuedVc ;
0 commit comments