Skip to content

Commit dc552bc

Browse files
astrob0tnovemberborn
authored andcommitted
Update link to t.throws() assertion in AVA output
Fixes #2007.
1 parent f4b2d19 commit dc552bc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/reporters/improper-usage-messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports.forError = error => {
1515
1616
Visit the following URL for more details:
1717
18-
${chalk.blue.underline(`https://github.com/avajs/ava/blob/v${pkg.version}/readme.md#throwsthrower-expected-message`)}`;
18+
${chalk.blue.underline(`https://github.com/avajs/ava/blob/v${pkg.version}/docs/03-assertions.md#throwsfn-expected-message`)}`;
1919
}
2020

2121
if (assertion === 'snapshot') {

test/reporters/mini.regular.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ stderr
209209

210210
Visit the following URL for more details:
211211

212-
https://github.com/avajs/ava/blob/v1.0.0-beta.5.1/readme.md#throwsthrower-expected-message
212+
https://github.com/avajs/ava/blob/v1.0.0-beta.5.1/docs/03-assertions.md#throwsfn-expected-message
213213

214214
fn (test.js:35:9)
215215
fn (test.js:38:11)
@@ -238,7 +238,7 @@ stderr
238238

239239
Visit the following URL for more details:
240240

241-
https://github.com/avajs/ava/blob/v1.0.0-beta.5.1/readme.md#throwsthrower-expected-message
241+
https://github.com/avajs/ava/blob/v1.0.0-beta.5.1/docs/03-assertions.md#throwsfn-expected-message
242242

243243
fn (test.js:43:9)
244244
fn (test.js:46:14)

test/reporters/verbose.regular.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ stderr
179179

180180
Visit the following URL for more details:
181181

182-
https://github.com/avajs/ava/blob/v1.0.0-beta.5.1/readme.md#throwsthrower-expected-message
182+
https://github.com/avajs/ava/blob/v1.0.0-beta.5.1/docs/03-assertions.md#throwsfn-expected-message
183183

184184
fn (test.js:35:9)
185185
fn (test.js:38:11)
@@ -208,7 +208,7 @@ stderr
208208

209209
Visit the following URL for more details:
210210

211-
https://github.com/avajs/ava/blob/v1.0.0-beta.5.1/readme.md#throwsthrower-expected-message
211+
https://github.com/avajs/ava/blob/v1.0.0-beta.5.1/docs/03-assertions.md#throwsfn-expected-message
212212

213213
fn (test.js:43:9)
214214
fn (test.js:46:14)

0 commit comments

Comments
 (0)