Installations
npm install expect-to-be-a-promise
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
0.10.38
NPM Version
2.10.1
Score
61.4
Supply Chain
57.7
Quality
80.2
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
substantial
Download Statistics
Total Downloads
99,167
Last Day
1
Last Week
12
Last Month
27
Last Year
259
GitHub Statistics
1 Stars
6 Commits
24 Watching
1 Branches
4 Contributors
Bundle Size
357.00 B
Minified
234.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.2
Package Id
expect-to-be-a-promise@1.0.2
Size
1.45 kB
NPM Version
2.10.1
Node Version
0.10.38
Total Downloads
Cumulative downloads
Total Downloads
99,167
Last day
-50%
1
Compared to previous day
Last week
300%
12
Compared to previous week
Last month
170%
27
Compared to previous month
Last year
-19.3%
259
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
No dependencies detected.
expect-to-be-a-promise
A chai matcher to assert the return value of a function is a thenable.
Usage
1var chai = require('chai'); 2var expectToBeAPromise = require('expect-to-be-a-promise'); 3 4chai.use(expectToBeAPromise); 5 6function doThing() { 7 return new Promise(function(resolve, reject) { 8 resolve('some value'); 9 }); 10} 11 12it('is a promise', function() { 13 expect(doThing()).to.be.a.promise; 14});
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
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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-01-27
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