mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-02 14:21:05 +01:00
Fix mock test env check outside of browser
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { isTestOrMockEnvironment } from '../environment';
|
||||
|
||||
/**
|
||||
* Left-to-Right Isolate
|
||||
* Sets direction to LTR and isolates the embedded content from the surrounding text
|
||||
@@ -208,7 +210,7 @@ export function _bidiIsolate(text: string): string {
|
||||
* ```
|
||||
*/
|
||||
export function bidiIsolate(text: string): string {
|
||||
if (window.SignalContext.isTestOrMockEnvironment()) {
|
||||
if (isTestOrMockEnvironment()) {
|
||||
// Turn this off in tests to make it easier to compare strings
|
||||
return text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user