diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 655cf100723354a2c70e23a88918b680aa363cff..c368f65b40e98a9038e6b26cc653ad21e5348665 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 }); ```