sinon-es6
JavaScript test spies, stubs and mocks for ES6.
Last updated 6 years ago by ingame .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sinon-es6 
SYNC missed versions from official npm registry.

SinonES6.JS

Sinon.js version compatible with ES6. Everything is like the original version of sinon, plus generators mocking.

var sinon = require('sinon-es6');

var objectToMock = {
    generator: function* (a, b) { yield ... }
};

sinon.mock(objectToMock).expects('generator').withArgs(2,3).returns(6);

All credits to @cjohansen and Sinon.JS contributors.

Current Tags

  • 0.0.3                                ...           latest (6 years ago)

3 Versions

  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (2)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |