1.3.2 • Published 7 years ago

@xtest/spec v1.3.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 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

7 years ago

0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.0.47

7 years ago

0.0.46

7 years ago