Skip to content
Snippets Groups Projects
Commit c4086508 authored by Leo Balter's avatar Leo Balter
Browse files

Merge pull request #555 from bocoup/fix-example

Correct example in contribution guidelines
parents 3cb20b9d 3a3ced17
No related branches found
No related tags found
No related merge requests found
......@@ -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:
```javascript
assert.throws(ReferenceError, function() {
1 += 1; // expect this to throw ReferenceError
assert.throws(TypeError, function() {
null(); // expect this statement to throw a TypeError
});
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment