| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6225370 commit c32f76d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2155,7 +2155,7 @@ assert.throws( | |||
| 2155 | 2155 | ); | |
| 2156 | 2156 | ||
| 2157 | 2157 | // Using regular expressions to validate error properties: | |
| 2158 | - throws( | ||
| 2158 | + assert.throws( | ||
| 2159 | 2159 | () => { | |
| 2160 | 2160 | throw err; | |
| 2161 | 2161 | }, | |
@@ -2179,7 +2179,7 @@ throws( | |||
| 2179 | 2179 | ); | |
| 2180 | 2180 | ||
| 2181 | 2181 | // Fails due to the different `message` and `name` properties: | |
| 2182 | - throws( | ||
| 2182 | + assert.throws( | ||
| 2183 | 2183 | () => { | |
| 2184 | 2184 | const otherErr = new Error('Not found'); | |
| 2185 | 2185 | // Copy all enumerable properties from `err` to `otherErr`. | |
@@ -2224,7 +2224,7 @@ assert.throws( | |||
| 2224 | 2224 | ); | |
| 2225 | 2225 | ||
| 2226 | 2226 | // Using regular expressions to validate error properties: | |
| 2227 | - throws( | ||
| 2227 | + assert.throws( | ||
| 2228 | 2228 | () => { | |
| 2229 | 2229 | throw err; | |
| 2230 | 2230 | }, | |
@@ -2248,7 +2248,7 @@ throws( | |||
| 2248 | 2248 | ); | |
| 2249 | 2249 | ||
| 2250 | 2250 | // Fails due to the different `message` and `name` properties: | |
| 2251 | - throws( | ||
| 2251 | + assert.throws( | ||
| 2252 | 2252 | () => { | |
| 2253 | 2253 | const otherErr = new Error('Not found'); | |
| 2254 | 2254 | // Copy all enumerable properties from `err` to `otherErr`. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments