1.3.2 • Published 6 years ago

@xtest/spec v1.3.2

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago
import { Spec, Contract } from '@xtest/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;
1.3.2

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.0.47

6 years ago

0.0.46

6 years ago