From 35ff52bf4daad198b93499d4882b944b7b2adebd Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Tue, 9 Apr 2024 10:03:19 +0200 Subject: [PATCH] Fix failing tests (#274) --- parser/__tests__/index.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser/__tests__/index.test.js b/parser/__tests__/index.test.js index e0b6e926..fe78025a 100644 --- a/parser/__tests__/index.test.js +++ b/parser/__tests__/index.test.js @@ -506,13 +506,13 @@ describe('inline image', () => { test('image with empty alt text and not completed link', () => { expect('# ![](example.com)').toBeParsedAs([ {type: 'syntax', start: 0, length: 2}, - {type: 'h1', start: 2, length: 12}, + {type: 'h1', start: 2, length: 16}, {type: 'syntax', start: 2, length: 1}, {type: 'syntax', start: 3, length: 1}, {type: 'syntax', start: 4, length: 1}, {type: 'syntax', start: 5, length: 1}, - {type: 'link', start: 6, length: 7}, - {type: 'syntax', start: 13, length: 1}, + {type: 'link', start: 6, length: 11}, + {type: 'syntax', start: 17, length: 1}, ]); }); });