diff --git a/src/common/__tests__/translate.test.ts b/src/common/__tests__/translate.test.ts index c1d20a32a30..cba1a4f81ef 100644 --- a/src/common/__tests__/translate.test.ts +++ b/src/common/__tests__/translate.test.ts @@ -71,6 +71,15 @@ describe('QuoteProcessor', () => { expect(targetText).toEqual(text) }) + it('should return the string without quote', () => { + const quoteProcessor = new QuoteProcessor() + const text = 'This is a test.' + const targetText = quoteProcessor.processText( + `${quoteProcessor.quoteStart}This${quoteProcessor.quoteStart} is ${quoteProcessor.quoteEnd}a${quoteProcessor.quoteStart} test.${quoteProcessor.quoteEnd}` + ) + expect(targetText).toEqual(text) + }) + it('should return the same string if no quote exists', () => { const quoteProcessor = new QuoteProcessor() const deltas = [