@chainspin/spec
Test suits for ChainSpin framework.
Last updated a year 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 (a year ago)

5 Versions

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

Copyright 2014 - 2017 © taobao.org |