Gathering detailed insights and metrics for sinon-called-sequence
Gathering detailed insights and metrics for sinon-called-sequence
npm install sinon-called-sequence
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,629
Last Day
1
Last Week
7
Last Month
27
Last Year
138
8 Commits
2 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
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
Cumulative downloads
Total Downloads
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
1
8
Patch sinon to provide methods that allow to check spy invocation with called before/after sequence of spies.
npm i sinon sinon-called-sequence --save-dev
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
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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
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
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
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