Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Assume Promise Since we've dropped support for legacy runtimes (hello IE11), we can assume `Promise` to be implemented in the runtime and don't need to detect it. See https://caniuse.com/promises * Remove factory function This was added in 3b80dbb to allow overriding promise library. Using a factory function for this purpose was not strictly necessary then and certainly isn't now. * Put the exports statement up top * Re-order code Code generally reads easier when it goes from high abstraction to low, like a newspaper article. * Remove boolean trap Prefer duplication over adding boolean traps to functions. See: https://ariya.io/2011/08/hall-of-api-shame-boolean-trap * Ignore jsdoc's out folder * Add JSDoc for sinon.fake * Update lib/sinon/fake.js Co-authored-by: Kristian Hamilton <krisham87@hotmail.com>
- Loading branch information
1 parent
57c6c63
commit 15c9539
Showing
4 changed files
with
251 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
coverage/ | ||
out/ | ||
pkg/ | ||
tmp/ | ||
docs/_site/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
out/ | ||
pkg | ||
tmp/ | ||
node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
coverage/ | ||
out/ | ||
pkg/ | ||
tmp/ | ||
.sass-cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters