-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare project for a new life as a Sinon.JS project #7
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
77bedae
Tidy up package.json
mroderick 8b8e3ee
Remove obsoleted files
mroderick 0b8f6c6
Rename Readme.md to README.md
mroderick 26ab918
Tidy up README.md
mroderick c554999
Update AUTHORS
mroderick 8a9ee80
Use the returnExports UMD wrapper
mroderick e2bb5f5
Port tests to Mocha
mroderick 40a7a25
Configure ESLint
mroderick 787ce36
Add .editorconfig
mroderick e0cd7ec
Fix lint violations
mroderick d74e453
Configure commit hook to lint js
mroderick 8aac4eb
Add CONTRIBUTING, ISSUE_TEMPLATE, PULL_REQUEST_TEMPLATE and stale.yaml
mroderick fcd68fd
Configure Travis
mroderick File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
; EditorConfig file: http://EditorConfig.org | ||
; Install the "EditorConfig" plugin into your editor to use | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
# Matches the exact files either package.json or .travis.yml | ||
[{package.json, .travis.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
; Needed if doing `git add --patch` to edit patches | ||
[*.diff] | ||
trim_trailing_whitespace = false |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
coverage/ |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
extends: 'eslint-config-sinon' | ||
|
||
env: | ||
amd: true | ||
browser: true | ||
node: true | ||
|
||
plugins: | ||
- ie11 | ||
|
||
rules: | ||
strict: [error, 'function'] | ||
|
||
ie11/no-collection-args: error | ||
ie11/no-for-in-const: error | ||
ie11/no-loop-func: warn | ||
ie11/no-weak-collections: error | ||
|
||
max-len: [error, {code: 120, ignoreStrings: true}] | ||
|
||
overrides: | ||
files: '*.test.*' | ||
plugins: | ||
- mocha | ||
env: | ||
mocha: true | ||
rules: | ||
max-nested-callbacks: [error, 6] | ||
strict: [error, 'global'] | ||
|
||
mocha/handle-done-callback: error | ||
mocha/no-exclusive-tests: error | ||
mocha/no-global-tests: error | ||
mocha/no-hooks-for-single-case: off | ||
mocha/no-identical-title: error | ||
mocha/no-mocha-arrows: error | ||
mocha/no-nested-tests: error | ||
mocha/no-return-and-callback: error | ||
mocha/no-sibling-hooks: error | ||
mocha/no-skipped-tests: error | ||
mocha/no-top-level-hooks: error | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Contributing | ||
|
||
## Use EditorConfig | ||
|
||
To save everyone some time, please use [EditorConfig](http://editorconfig.org), so your editor helps make | ||
sure we all use the same encoding, indentation, line endings, etc. | ||
|
||
|
||
## Compatibility | ||
|
||
This repository follows the [compatibility guidelines of `sinon`](https://github.com/sinonjs/sinon/blob/master/CONTRIBUTING.md#compatibility) | ||
|
||
|
||
## Style | ||
|
||
This repository follows the [style guidelines of `sinon`](https://github.com/sinonjs/sinon/blob/master/CONTRIBUTING.md#style) |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
Are you wondering how to do something, or something else that is purely | ||
usage related? Please post it to StackOverflow using the `referee-sinon` label. | ||
|
||
This makes it possible for the bigger community to help answer your questions. | ||
|
||
The issue tracker is solely meant for posting bugs, feature requests and non-usage related issues. | ||
--> | ||
|
||
> We understand you have a problem and are in a hurry, but please provide us with some info to make it much more likely for your issue to be understood, worked on and resolved quickly. | ||
|
||
|
||
* library version : _please verify that the bug exists in the latest release_ | ||
* Environment : | ||
* Example URL : | ||
* Other libraries you are using: | ||
|
||
**What did you expect to happen?** | ||
|
||
**What actually happens** | ||
|
||
**How to reproduce** | ||
> Describe *with code* how to reproduce the faulty behaviour, | ||
> or link to code on JSBin or similar | ||
|
||
<!-- Delete the section below if it is irrelevant to your issue --> | ||
<details> | ||
<summary>Really long code sample or stacktrace</summary> | ||
|
||
If you need to provide a dump of a stack trace or | ||
other lengthy material, such as 80 lines of example code, | ||
please stuff it in a `<details>` tag such as this | ||
to make the issue more readable. Thanks. | ||
</details> |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#### Purpose (TL;DR) - mandatory | ||
<!-- | ||
> give a concise (one or two short sentences) description of what what problem is being solved by this PR | ||
> | ||
> Example: Fix issue #123456 by re-structuring the colour selection conditional in method `paintBlue` | ||
--> | ||
|
||
|
||
<!-- | ||
#### Background (Problem in detail) - optional | ||
--> | ||
<!-- | ||
> When relevant, give a more thorough description of what the problem the PR is trying to solve. Examples of good topics for this section are: | ||
> * Link to an existing GitHub issue describing the problem | ||
> * Describing the problem in greater detail than the TL;DR section above | ||
> * How you discovered the issue, if it's not already described as an issue on GitHub | ||
> * Discussion of different approaches to solving this problem and why you chose your proposed solution | ||
--> | ||
|
||
|
||
<!-- | ||
#### Solution - optional | ||
--> | ||
<!-- | ||
> When contributing code (and not just fixing typos, documentation and configuration), please describe why/how your solution works. This helps reviewers spot any mistakes in the implementation. | ||
> | ||
> Example: | ||
> "This solution works by adding a `paintBlue()` method" | ||
> Then your reviewer might spot a mistake in the implementation, if `paintBlue()` uses the colour red. | ||
--> | ||
|
||
#### How to verify - mandatory | ||
1. Check out this branch | ||
2. `npm install` | ||
3. <your-steps-here> | ||
|
||
#### Checklist for author | ||
|
||
- [ ] `npm run lint` passes | ||
- [ ] References to standard library functions are [cached](https://github.com/sinonjs/sinon/pull/1523). |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- pinned | ||
- security | ||
# Label to use when marking an issue as stale | ||
staleLabel: stale | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false |
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 @@ | ||
*.log | ||
node_modules | ||
.idea | ||
coverage/ |
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,9 +1,31 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- "0.10" | ||
- "0.12" | ||
- "4" | ||
- "5" | ||
# https://github.com/nodejs/LTS | ||
- "4" # ends April 2018 | ||
- "6" # ends April 2019 | ||
- "8" # ends December 2019 | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
before_install: | ||
- npm i -g npm | ||
- npm install coveralls | ||
|
||
before_script: | ||
# Make npm run work for the script phase: | ||
- if [ "x$TRAVIS_NODE_VERSION" != "x8" ]; then npm config set ignore-scripts false; fi | ||
# these build targets only need to run once per build, so let's conserve a few resources | ||
# ESLint only supports Node >=4 | ||
- if [ "x$TRAVIS_NODE_VERSION" = "x8" ]; then npm run lint; fi | ||
|
||
script: | ||
- npm test | ||
|
||
after_success: | ||
- if [ "x$TRAVIS_NODE_VERSION" = "x8" ]; then npm run test-coverage && cat ./coverage/lcov.info | coveralls lib; fi | ||
|
||
git: | ||
depth: 10 |
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,6 +1,10 @@ | ||
Christian Johansen, christian@cjohansen.no | ||
August Lilleaas, august@augustl.com | ||
Luís Cardoso, lfac.pt@gmail.com | ||
Malcolm Locke, malc@wholemeal.co.nz | ||
Max Antoni, mail@maxantoni.de | ||
Stein Magnus Jodal, stein.magnus@jodal.no | ||
Christian Johansen <christian@cjohansen.no> | ||
Morgan Roderick <morgan@roderick.dk> | ||
Dominykas Blyžė <hello@dominykas.com> | ||
Daniel Wittner <d.wittner@gmx.de> | ||
August Lilleaas <august@augustl.com> | ||
Luís Cardoso <lfac.pt@gmail.com> | ||
Stein Magnus Jodal <stein.magnus@jodal.no> | ||
Malcolm Locke <malc@wholemeal.co.nz> | ||
Max Antoni <mail@maxantoni.de> | ||
Christoph Neuroth <christoph.neuroth@gmail.com> |
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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# referee-sinon | ||
|
||
[![Build status](https://secure.travis-ci.org/sinonjs/referee-sinon.png?branch=master)](http://travis-ci.org/sinonjs/referee-sinon) | ||
|
||
Sinon.JS assertions for the referee assertion library. | ||
|
||
## Backers | ||
|
||
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/sinon#backer)] | ||
|
||
<a href="https://opencollective.com/sinon/backer/0/website" target="_blank"><img src="https://opencollective.com/sinon/backer/0/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/1/website" target="_blank"><img src="https://opencollective.com/sinon/backer/1/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/2/website" target="_blank"><img src="https://opencollective.com/sinon/backer/2/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/3/website" target="_blank"><img src="https://opencollective.com/sinon/backer/3/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/4/website" target="_blank"><img src="https://opencollective.com/sinon/backer/4/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/5/website" target="_blank"><img src="https://opencollective.com/sinon/backer/5/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/6/website" target="_blank"><img src="https://opencollective.com/sinon/backer/6/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/7/website" target="_blank"><img src="https://opencollective.com/sinon/backer/7/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/8/website" target="_blank"><img src="https://opencollective.com/sinon/backer/8/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/9/website" target="_blank"><img src="https://opencollective.com/sinon/backer/9/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/10/website" target="_blank"><img src="https://opencollective.com/sinon/backer/10/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/11/website" target="_blank"><img src="https://opencollective.com/sinon/backer/11/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/12/website" target="_blank"><img src="https://opencollective.com/sinon/backer/12/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/13/website" target="_blank"><img src="https://opencollective.com/sinon/backer/13/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/14/website" target="_blank"><img src="https://opencollective.com/sinon/backer/14/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/15/website" target="_blank"><img src="https://opencollective.com/sinon/backer/15/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/16/website" target="_blank"><img src="https://opencollective.com/sinon/backer/16/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/17/website" target="_blank"><img src="https://opencollective.com/sinon/backer/17/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/18/website" target="_blank"><img src="https://opencollective.com/sinon/backer/18/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/19/website" target="_blank"><img src="https://opencollective.com/sinon/backer/19/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/20/website" target="_blank"><img src="https://opencollective.com/sinon/backer/20/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/21/website" target="_blank"><img src="https://opencollective.com/sinon/backer/21/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/22/website" target="_blank"><img src="https://opencollective.com/sinon/backer/22/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/23/website" target="_blank"><img src="https://opencollective.com/sinon/backer/23/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/24/website" target="_blank"><img src="https://opencollective.com/sinon/backer/24/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/25/website" target="_blank"><img src="https://opencollective.com/sinon/backer/25/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/26/website" target="_blank"><img src="https://opencollective.com/sinon/backer/26/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/27/website" target="_blank"><img src="https://opencollective.com/sinon/backer/27/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/28/website" target="_blank"><img src="https://opencollective.com/sinon/backer/28/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/backer/29/website" target="_blank"><img src="https://opencollective.com/sinon/backer/29/avatar.svg"></a> | ||
|
||
|
||
## Sponsors | ||
|
||
Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor](https://opencollective.com/sinon#sponsor)] | ||
|
||
<a href="https://opencollective.com/sinon/sponsor/0/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/0/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/1/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/1/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/2/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/2/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/3/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/3/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/4/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/4/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/5/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/5/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/6/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/6/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/7/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/7/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/8/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/8/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/9/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/9/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/10/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/10/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/11/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/11/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/12/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/12/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/13/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/13/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/14/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/14/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/15/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/15/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/16/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/16/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/17/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/17/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/18/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/18/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/19/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/19/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/20/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/20/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/21/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/21/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/22/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/22/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/23/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/23/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/24/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/24/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/25/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/25/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/26/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/26/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/27/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/27/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/28/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/28/avatar.svg"></a> | ||
<a href="https://opencollective.com/sinon/sponsor/29/website" target="_blank"><img src="https://opencollective.com/sinon/sponsor/29/avatar.svg"></a> | ||
|
||
## Licence | ||
|
||
referee-sinon was released under [BSD-3](LICENSE) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very helpful! 😎