chore: spell-check test files (#6903)

This commit is contained in:
Joshua Chen 2022-03-12 15:24:56 +08:00 committed by GitHub
parent f6baaa6b75
commit 76cb012209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 184 additions and 155 deletions

View file

@ -199,7 +199,9 @@ describe('headings remark plugin', () => {
const expected = u('root', [
heading('I ♥ unicode', 'i--unicode'),
heading('Dash-dash', 'dash-dash'),
// cSpell:ignore endash
heading('endash', 'endash'),
// cSpell:ignore emdash
heading('emdash', 'emdash'),
heading('😄 unicode emoji', '-unicode-emoji'),
heading('😄-😄 unicode emoji', '--unicode-emoji'),
@ -214,6 +216,7 @@ describe('headings remark plugin', () => {
heading(':ok_hand: Single', 'ok_hand-single'),
heading(
':ok_hand::hatched_chick: Two in a row with no spaces',
// cSpell:ignore handhatched
'ok_handhatched_chick-two-in-a-row-with-no-spaces',
),
heading(
@ -251,11 +254,11 @@ describe('headings remark plugin', () => {
## Heading Two {#custom-heading-two}
# With *Bold* {#custom-withbold}
# With *Bold* {#custom-with-bold}
# With *Bold* hello{#custom-withbold-hello}
# With *Bold* hello{#custom-with-bold-hello}
# With *Bold* hello2 {#custom-withbold-hello2}
# With *Bold* hello2 {#custom-with-bold-hello2}
# Snake-cased ID {#this_is_custom_id}
@ -281,15 +284,15 @@ describe('headings remark plugin', () => {
text: 'Heading Two',
},
{
id: 'custom-withbold',
id: 'custom-with-bold',
text: 'With Bold',
},
{
id: 'custom-withbold-hello',
id: 'custom-with-bold-hello',
text: 'With Bold hello',
},
{
id: 'custom-withbold-hello2',
id: 'custom-with-bold-hello2',
text: 'With Bold hello2',
},
{

View file

@ -40,4 +40,4 @@
[json](./data.json)
[static json](/staticjson.json)
[static json](/static-json.json)

View file

@ -52,6 +52,6 @@ exports[`transformAsset plugin transform md links to <a /> 1`] = `
<a target=\\"_blank\\" href={require('./data.raw!=!<PROJECT_ROOT>/node_modules/file-loader/dist/cjs.js?name=assets/files/[name]-[contenthash].[ext]!./data.json').default}>json</a>
<a target=\\"_blank\\" href={require('./static/staticjson.raw!=!<PROJECT_ROOT>/node_modules/file-loader/dist/cjs.js?name=assets/files/[name]-[contenthash].[ext]!./static/staticjson.json').default}>static json</a>
<a target=\\"_blank\\" href={require('./static/static-json.raw!=!<PROJECT_ROOT>/node_modules/file-loader/dist/cjs.js?name=assets/files/[name]-[contenthash].[ext]!./static/static-json.json').default}>static json</a>
"
`;