1.1.3 • Published 5 years ago

tslint-sinon v1.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

tslint-sinon

This package provides additional TSLint rules that help to enforce some best practices when using Sinon mocking library.

Supported rules

  • sinon-prefer-resolves - suggests to use stub.resolves(x) instead of stub.returns(Promise.resolve(x)).
  • sinon-prefer-sandbox - suggests to create fakes via sandbox instead of creating them directly.

How to install

  • Run npm install --save-dev tslint-sinon
  • Add to your tslint.json:
  "rules": {
    "sinon-prefer-resolves": true,
    "sinon-prefer-sandbox": true
  },
  "rulesDirectory": [
    "tslint-sinon"
  ]

Status

Build Status

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.1.0-alpha

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago