Merge pull request #555 from bocoup/fix-example

Correct example in contribution guidelines
This commit is contained in:
Leo Balter 2016-03-29 15:19:02 -07:00
commit c4086508db

View File

@ -193,8 +193,8 @@ var var = var;
Expectations for **runtime errors** should be defined using the `assert.throws` method and the appropriate JavaScript Error constructor function: Expectations for **runtime errors** should be defined using the `assert.throws` method and the appropriate JavaScript Error constructor function:
```javascript ```javascript
assert.throws(ReferenceError, function() { assert.throws(TypeError, function() {
1 += 1; // expect this to throw ReferenceError null(); // expect this statement to throw a TypeError
}); });
``` ```