Skip to content

Commit 3b8286a

Browse files
committed
Add test
1 parent 9ff7c15 commit 3b8286a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/test/github/folderRepositoryManager.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,4 +334,12 @@ describe('titleAndBodyFrom', function () {
334334
assert.strictEqual(result?.title, 'title');
335335
assert.strictEqual(result?.body, '* Outer item\n\n Second paragraph of outer with continuation\n * Inner item\n\n Second paragraph of inner with continuation');
336336
});
337+
338+
it('handles first list item needs to be unwrapped', async function () {
339+
const message = Promise.resolve('This is a test\n\n- A fslilenfilnf flen felslnf lsefl fnels Leknef\nLkdfnle lfkenSlefn Lnkef LefnLienf LIfnels\n- B\n- C');
340+
341+
const result = await titleAndBodyFrom(message);
342+
assert.strictEqual(result?.title, 'This is a test');
343+
assert.strictEqual(result?.body, '- A fslilenfilnf flen felslnf lsefl fnels Leknef Lkdfnle lfkenSlefn Lnkef LefnLienf LIfnels\n- B\n- C');
344+
});
337345
});

0 commit comments

Comments
 (0)