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;
@specron/spec
0.17.6 • Public • Published Readme
Keywords
nonePackage Sidebar
Install
npm i @specron/spec
Weekly Downloads
84
Version
0.17.6
License
MIT
Unpacked Size
119 kB
Total Files
91