From 5c79b32bd0f186583a088431579f299fa5495296 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 26 Aug 2021 10:07:30 +0200 Subject: [PATCH] Update tests for changes in `mdast-util-to-markdown` See: https://github.com/syntax-tree/mdast-util-to-markdown/releases/tag/1.2.1. --- package.json | 2 +- packages/remark-stringify/test.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index c0f68a3f8..403d19ae8 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "mdast-util-gfm": "^1.0.0", "micromark-extension-gfm": "^1.0.0", "prettier": "^2.0.0", - "remark-preset-wooorm": "^8.0.0", + "remark-preset-wooorm": "^9.0.0", "rimraf": "^3.0.0", "tape": "^5.0.0", "type-coverage": "^2.0.0", diff --git a/packages/remark-stringify/test.js b/packages/remark-stringify/test.js index d44b25b5e..dccaea5e1 100644 --- a/packages/remark-stringify/test.js +++ b/packages/remark-stringify/test.js @@ -445,19 +445,19 @@ test('stringify escapes', (t) => { t.equal(toString('+a'), '\\+a\n', '`+` (phrasing)') t.equal(toString('.a'), '.a\n', '`.`') t.equal(toString('1.a'), '1.a\n', '`.` (after digit before letter)') - t.equal(toString('1. '), '1\\. \n', '`.` (after digit, with space)') - t.equal(toString('1.\t'), '1\\.\t\n', '`.` (after digit, with tab)') + t.equal(toString('1. '), '1\\. \n', '`.` (after digit, with space)') + t.equal(toString('1.\t'), '1\\. \n', '`.` (after digit, with tab)') t.equal(toString('1.\n'), '1\\.\n', '`.` (after digit, with newline)') t.equal(toString('1.'), '1\\.\n', '`.` (after digit, with EOF)') t.equal(toString('1.a'), '1.a\n', '`1.` (after digit, before letter)') - t.equal(toString('1. '), '1\\. \n', '`1.` (after digit, with space)') - t.equal(toString('1.\t'), '1\\.\t\n', '`1.` (after digit, with tab)') + t.equal(toString('1. '), '1\\. \n', '`1.` (after digit, with space)') + t.equal(toString('1.\t'), '1\\. \n', '`1.` (after digit, with tab)') t.equal(toString('1.\n'), '1\\.\n', '`1.` (after digit, with newline)') t.equal(toString('1.'), '1\\.\n', '`1.` (after digit, with EOF)') t.equal(toString(')a'), ')a\n', '`)`') t.equal(toString('1)a'), '1\\)a\n', '`)` (after digit)') - t.equal(toString('1) '), '1\\) \n', '`)` (after digit, with space)') - t.equal(toString('1)\t'), '1\\)\t\n', '`)` (after digit, with tab)') + t.equal(toString('1) '), '1\\) \n', '`)` (after digit, with space)') + t.equal(toString('1)\t'), '1\\) \n', '`)` (after digit, with tab)') t.equal(toString('1)\n'), '1\\)\n', '`)` (after digit, with newline)') t.equal(toString('1)'), '1\\)\n', '`)` (after digit, with EOL)') t.equal(toString('a](b'), 'a]\\(b\n', '`(` after `]`')