Skip to content

Commit

Permalink
updated to use new sinon (v2) format
Browse files Browse the repository at this point in the history
  • Loading branch information
CurtisHumphrey committed May 5, 2017
1 parent 64c75e2 commit 36ed9f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 1.1.0
* updated to use new sinon (v2) format

# 1.0.1 Baseline
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

function proptype_error_catcher (sandbox) {
sandbox.stub(console, 'error', function (message) {
sandbox.stub(console, 'error').callsFake(function (message) {
if (!message.includes('Failed prop type')) return;
throw new Error(message);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-proptype-error-catcher",
"version": "1.0.1",
"version": "1.1.0",
"description": "Causes React PropType errors to fail the test",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 36ed9f4

Please sign in to comment.