File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2137,7 +2137,7 @@ assert.throws(
2137
2137
);
2138
2138
2139
2139
// Using regular expressions to validate error properties:
2140
- throws (
2140
+ assert . throws (
2141
2141
() => {
2142
2142
throw err;
2143
2143
},
@@ -2161,7 +2161,7 @@ throws(
2161
2161
);
2162
2162
2163
2163
// Fails due to the different `message` and `name` properties:
2164
- throws (
2164
+ assert . throws (
2165
2165
() => {
2166
2166
const otherErr = new Error (' Not found' );
2167
2167
// Copy all enumerable properties from `err` to `otherErr`.
@@ -2206,7 +2206,7 @@ assert.throws(
2206
2206
);
2207
2207
2208
2208
// Using regular expressions to validate error properties:
2209
- throws (
2209
+ assert . throws (
2210
2210
() => {
2211
2211
throw err;
2212
2212
},
@@ -2230,7 +2230,7 @@ throws(
2230
2230
);
2231
2231
2232
2232
// Fails due to the different `message` and `name` properties:
2233
- throws (
2233
+ assert . throws (
2234
2234
() => {
2235
2235
const otherErr = new Error (' Not found' );
2236
2236
// Copy all enumerable properties from `err` to `otherErr`.
You can’t perform that action at this time.
0 commit comments