From 05733b6bc92db37b8c7bbee792f40125714aa020 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sat, 12 Nov 2016 22:41:43 +0100 Subject: Remove attachment links, as we are already showing them. --- test/unit/specs/services/status_parser/status_parses.spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/unit/specs/services/status_parser/status_parses.spec.js (limited to 'test/unit/specs/services/status_parser/status_parses.spec.js') diff --git a/test/unit/specs/services/status_parser/status_parses.spec.js b/test/unit/specs/services/status_parser/status_parses.spec.js new file mode 100644 index 00000000..e6d185f8 --- /dev/null +++ b/test/unit/specs/services/status_parser/status_parses.spec.js @@ -0,0 +1,11 @@ +const example = '
@dwmatiz https://social.heldscal.la/attachment/159853
' + +import { removeAttachmentLinks } from '../../../../../src/services/status_parser/status_parser.js' + +describe('statusParser.removeAttachmentLinks', () => { + const exampleWithoutAttachmentLinks = '
@dwmatiz
' + it('removes attachment links', () => { + const parsed = removeAttachmentLinks(example) + expect(parsed).to.eql(exampleWithoutAttachmentLinks) + }) +}) -- cgit v1.2.3-70-g09d2