diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 655cf10072..c368f65b40 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 }); ```