@chainspin/spec
Test suits for ChainSpin framework.
Last updated 9 months ago by xpepermint .
MIT · Original npm · Tarball · package.json
$ cnpm install @chainspin/spec 
SYNC missed versions from official npm registry.
import { Spec, Contract } from '@chainspin/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('accounts', await context.getAccounts());
  ctx.set('User', await context.requireContract({ str: './src/contracts/User' }));
});

export default spec;

Current Tags

  • 0.17.0                                ...           latest (9 months ago)

5 Versions

  • 0.17.0                                ...           9 months ago
  • 0.16.4                                ...           9 months ago
  • 0.16.3                                ...           9 months ago
  • 0.16.2                                ...           9 months ago
  • 0.16.1                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 17
Dependencies (4)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |