Skip to content

Commit c7830ab

Browse files
committed
Regenerate tests
1 parent 5d0f295 commit c7830ab

17 files changed

+71
-38
lines changed

script/crawl-tests.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import assert from 'node:assert/strict'
2-
import fs from 'node:fs'
3-
import fetch from 'node-fetch'
1+
import fs from 'node:fs/promises'
2+
import {fetch} from 'undici'
43

54
const response = await fetch(
65
'https://api.github.com/repos/micromark/micromark-extension-gfm/contents/test/spec.js',
76
{headers: {Accept: 'application/vnd.github.v3.raw'}}
87
)
9-
assert(response.body, 'expected body')
10-
response.body.pipe(
11-
fs.createWriteStream(new URL('../test/spec.js', import.meta.url))
12-
)
8+
const text = await response.text()
9+
10+
await fs.writeFile(new URL('../test/spec.js', import.meta.url), text)

test/10-strikethrough.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
~~Hi~~ Hello, world!
1+
~~Hi~~ Hello, ~~there~~ world!

test/12-autolinks.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/12-strikethrough.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This will \~\~\~not\~\~\~ strike.

test/13-autolinks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Visit [www.commonmark.org/help](http://www.commonmark.org/help) for more information.
1+
[www.commonmark.org](http://www.commonmark.org)

test/14-autolinks.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
Visit [www.commonmark.org](http://www.commonmark.org).
2-
3-
Visit [www.commonmark.org/a.b](http://www.commonmark.org/a.b).
1+
Visit [www.commonmark.org/help](http://www.commonmark.org/help) for more information.

test/15-autolinks.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[www.google.com/search?q=Markup+(business)](http://www.google.com/search?q=Markup+\(business\))
1+
Visit [www.commonmark.org](http://www.commonmark.org).
22

3-
[www.google.com/search?q=Markup+(business)](http://www.google.com/search?q=Markup+\(business\))))
4-
5-
([www.google.com/search?q=Markup+(business)](http://www.google.com/search?q=Markup+\(business\)))
6-
7-
([www.google.com/search?q=Markup+(business)](http://www.google.com/search?q=Markup+\(business\))
3+
Visit [www.commonmark.org/a.b](http://www.commonmark.org/a.b).

test/16-autolinks.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
[www.google.com/search?q=(business))+ok](http://www.google.com/search?q=\(business\)\)+ok)
1+
[www.google.com/search?q=Markup+(business)](http://www.google.com/search?q=Markup+\(business\))
2+
3+
[www.google.com/search?q=Markup+(business)](http://www.google.com/search?q=Markup+\(business\))))
4+
5+
([www.google.com/search?q=Markup+(business)](http://www.google.com/search?q=Markup+\(business\)))
6+
7+
([www.google.com/search?q=Markup+(business)](http://www.google.com/search?q=Markup+\(business\))

test/17-autolinks.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
[www.google.com/search?q=commonmark\&hl=en](http://www.google.com/search?q=commonmark\&hl=en)
2-
3-
[www.google.com/search?q=commonmark](http://www.google.com/search?q=commonmark)\&hl;
1+
[www.google.com/search?q=(business))+ok](http://www.google.com/search?q=\(business\)\)+ok)

test/18-autolinks.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
[www.commonmark.org/he](http://www.commonmark.org/he)\<lp
1+
[www.google.com/search?q=commonmark\&hl=en](http://www.google.com/search?q=commonmark\&hl=en)
2+
3+
[www.google.com/search?q=commonmark](http://www.google.com/search?q=commonmark)\&hl;

0 commit comments

Comments
 (0)