How to use the @accordproject/ergo-test/lib/util.resolveRootDir function in @accordproject/ergo-test

To help you get started, we’ve selected a few @accordproject/ergo-test examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github accordproject / cicero / packages / cicero-test / lib / steps.js View on Github external
Given('that the contract data is', async function (contractData) {
    const dataJson = JSON.parse(contractData);
    if (!this.clause) {
        const templateDir = Path.resolve(Util.resolveRootDir(this.parameters),'.');
        const clause = await loadClause(templateDir);
        this.request = clause.getTemplate().getMetadata().getRequest();
        this.clause = clause;
    }
    this.clause.setData(dataJson);
});

@accordproject/ergo-test

Ergo Test

Apache-2.0
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Similar packages