@specron/spec
v0.17.6
Published
Test suits for Specron framework.
Downloads
228
Readme
import { Spec, Contract } from '@specron/core';
interface Data {
id?: number;
name?: string;
User?: Contract;
}
const spec = new Spec<Data>();
spec.before(async (ctx) => {
ctx.set('id', 100);
ctx.set('web3', context.web3);
ctx.set('User', await context.require({ src: './src/contracts/User' }));
});
export default spec;