From f6eede0ede133927ead734bdc2bb5a3689164d2f Mon Sep 17 00:00:00 2001 From: Hardik Choudhary Date: Mon, 30 Oct 2023 21:47:55 +0530 Subject: [PATCH] OS check removed --- tests/unit/ConvertToLTRForComposerTest.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tests/unit/ConvertToLTRForComposerTest.js b/tests/unit/ConvertToLTRForComposerTest.js index 238c8d135eb6..3cf08b910925 100644 --- a/tests/unit/ConvertToLTRForComposerTest.js +++ b/tests/unit/ConvertToLTRForComposerTest.js @@ -1,4 +1,3 @@ -import {platform} from 'os'; import convertToLTRForComposer from '../../src/libs/convertToLTRForComposer'; import CONST from '../../src/CONST'; @@ -14,22 +13,14 @@ describe('convertToLTRForComposer', () => { // Test when input contains RTL characters const inputText = 'مثال'; const result = convertToLTRForComposer(inputText); - if (platform === 'android') { - expect(result).toBe(inputText); - } else { - expect(result).toBe(`${CONST.UNICODE.LTR}${inputText}`); - } + expect(result).toBe(`${CONST.UNICODE.LTR}${inputText}`); }); test('Input with mixed RTL and LTR characters is prefixed with LTR marker', () => { // Test when input contains mix of RTL and LTR characters const inputText = 'مثال test '; const result = convertToLTRForComposer(inputText); - if (platform === 'android') { - expect(result).toBe(inputText); - } else { - expect(result).toBe(`${CONST.UNICODE.LTR}${inputText}`); - } + expect(result).toBe(`${CONST.UNICODE.LTR}${inputText}`); }); test('Input with only space remains unchanged', () => {