diff --git a/tests/modifier-text-allowed-chars.spec.ts b/tests/modifier-text-allowed-chars.spec.ts index acdd3b5..94a46d8 100644 --- a/tests/modifier-text-allowed-chars.spec.ts +++ b/tests/modifier-text-allowed-chars.spec.ts @@ -56,3 +56,58 @@ describe.skip('modifier-text-allowed-chars minus sign', () => { }); }); + +describe.skip('modifier-text-allowed-chars special chars', () => { + + const speech = new SpeechMarkdown(); + + const markdown = dedent` + This is text with (parens) but this and other special characters: []()*~@#\\_!+- are ignored + `; + + test('converts to SSML - Amazon Alexa', () => { + + const options = { + platform: 'amazon-alexa' + }; + const ssml = speech.toSSML(markdown, options); + + const expected = dedent` + + This is text with (parens) but this and other special characters: []()*~@#\\_!+- are ignored + + `; + + expect(ssml).toBe(expected); + }); + + test('converts to SSML - Google Assistant', () => { + + const options = { + platform: 'google-assistant' + }; + const ssml = speech.toSSML(markdown, options); + + const expected = dedent` + + This is text with (parens) but this and other special characters: []()*~@#\\_!+- are ignored + + `; + + expect(ssml).toBe(expected); + }); + + test('converts to Plain Text', () => { + + const options = { + }; + const text = speech.toText(markdown, options); + + const expected = dedent` + This is text with (parens) but this and other special characters: []()*~@#\\_!+- are ignored + `; + + expect(text).toBe(expected); + }); + +});