diff --git a/app/javascript/dashboard/helper/specs/editorHelper.spec.js b/app/javascript/dashboard/helper/specs/editorHelper.spec.js index 0c40a74d8..1851dfbd6 100644 --- a/app/javascript/dashboard/helper/specs/editorHelper.spec.js +++ b/app/javascript/dashboard/helper/specs/editorHelper.spec.js @@ -18,10 +18,14 @@ const DOES_NOT_HAVE_SIGNATURE = { body: 'This is a test\n\n--\n\nThis is a signature\n\nThis is more text', signature: 'This is a signature', }, - signature_has_images: { + 'signature has images': { body: 'This is a test', signature: - 'Testing\n![](http://localhost:3000/rails/active_storage/blobs/redirect/some-hash/image.png)', + 'Testing \n![](http://localhost:3000/rails/active_storage/blobs/redirect/some-hash/image.png)', + }, + 'signature has non commonmark syntax': { + body: 'This is a test', + signature: '- Shivam', }, }; @@ -38,6 +42,10 @@ const HAS_SIGNATURE = { body: '\n\n--\n\nThis is a signature', signature: 'This is a signature', }, + 'signature has non-commonmark syntax': { + body: '\n\n--\n\n* Signature', + signature: '- Signature', + }, }; describe('findSignatureInBody', () => {