Skip to content

Commit a7e6255

Browse files
committed
add missing helper functions
Signed-off-by: PatStLouis <[email protected]>
1 parent c3c0401 commit a7e6255

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

tests/90-algorithms-rdfc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
isValidUtf8,
1212
setupReportableTestSuite,
1313
setupRow
14-
} from '../helpers.js';
14+
} from './helpers.js';
1515
import chai from 'chai';
1616
import {endpoints} from 'vc-test-suite-implementations';
1717

tests/helpers.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as bs64 from 'base64url-universal';
77
import {createRequire} from 'node:module';
88
import {isUtf8} from 'node:buffer';
99
import {klona} from 'klona';
10+
import {readFileSync} from 'fs';
1011
import {v4 as uuidv4} from 'uuid';
1112

1213
export const require = createRequire(import.meta.url);
@@ -35,6 +36,9 @@ export const ISOTimeStamp = ({date = new Date()} = {}) => {
3536
*
3637
* @returns {Promise<object>} The resulting issuance result.
3738
*/
39+
40+
export const config = JSON.parse(readFileSync('./config/runner.json'));
41+
3842
export const createInitialVc = async ({
3943
issuer,
4044
vc,
@@ -270,3 +274,11 @@ export function createValidCredential(version = 2) {
270274
}
271275
return credential;
272276
}
277+
278+
export function setupRow() {
279+
// append test meta data to the it/test this.
280+
this.currentTest.cell = {
281+
columnId: this.currentTest.parent.title,
282+
rowId: this.currentTest.title
283+
};
284+
}

0 commit comments

Comments
 (0)