Installations
npm install sinon-called-sequence
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 6
Node Version
10.10.0
NPM Version
6.4.1
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
killmenot
Download Statistics
Total Downloads
1,629
Last Day
1
Last Week
7
Last Month
27
Last Year
138
GitHub Statistics
8 Commits
2 Watching
2 Branches
1 Contributors
Bundle Size
879.00 B
Minified
365.00 B
Minified + Gzipped
Package Meta Information
Latest Version
2.0.0
Package Id
sinon-called-sequence@2.0.0
Unpacked Size
38.04 kB
Size
7.41 kB
File Count
12
NPM Version
6.4.1
Node Version
10.10.0
Total Downloads
Cumulative downloads
Total Downloads
1,629
Last day
0%
1
Compared to previous day
Last week
-12.5%
7
Compared to previous week
Last month
350%
27
Compared to previous month
Last year
3.8%
138
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
8
Sinon called sequence
Patch sinon to provide methods that allow to check spy invocation with called before/after sequence of spies.
Install
npm i sinon sinon-called-sequence --save-dev
Requirements
- Node.js 6+
- Sinon >=5
How to use?
1const sinon = require('sinon'); 2require('sinon-called-sequence'); 3 4const spy1 = sinon.spy(); 5const spy2 = sinon.spy(); 6const spy3 = sinon.spy(); 7const spy4 = sinon.spy(); 8 9spy1(); 10spy2(); 11spy3(); 12spy4(); 13 14spy1.calledBeforeSequence(spy2, spy4); // true 15spy1.calledImmediatelyBeforeSequence(spy2, spy3, spy4); // true 16spy4.calledAfterSequence(spy3, spy1); // true 17spy4.calledImmediatelyAfterSequence(spy3, spy2, spy1); // true
License
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More