https://github.com/nighttrax/strictly-sinon-chai
A statically typed subset of sinon-chai assertions written in TypeScript to be used with strictly-chai
https://github.com/nighttrax/strictly-sinon-chai
Last synced: 8 months ago
JSON representation
A statically typed subset of sinon-chai assertions written in TypeScript to be used with strictly-chai
- Host: GitHub
- URL: https://github.com/nighttrax/strictly-sinon-chai
- Owner: NiGhTTraX
- Created: 2018-05-27T13:49:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-27T14:17:31.000Z (over 7 years ago)
- Last Synced: 2025-01-24T02:15:42.904Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.com/NiGhTTraX/strictly-sinon-chai)
[](https://codecov.io/gh/NiGhTTraX/strictly-sinon-chai)
> A statically typed subset of [sinon-chai](https://github.com/domenic/sinon-chai)
assertions written in TypeScript to be used with
[strictly-chai](https://github.com/NiGhTTraX/strictly-chai).
## Usage
```ts
import { extend } from 'strictly-chai/dist/src/extend';
import sinonChai form 'strictly-sinon-chai';
import { spy } from 'sinon';
const expect = extend(sinonChai);
expect(spy()).to.have.been.called();
// TS2339: Property 'have' does not exist on type
// '{ equal: (expected: () => void) => void; not: {...
expect(() => {}).to.have.been.called();
```