Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Jun 16, 2024
1 parent 95fc433 commit c9a795b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/hooks/tests/use_editable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ pub async fn replace_text() {
// Text and cursor have changed
let cursor = root.get(1).get(0);
let content = root.get(0).get(0).get(0);
#[cfg(target_os = "windows")]
#[cfg(not(target_os = "macos"))]
{
assert_eq!(content.text(), Some("Hello🦀ceans\nHello Rustaceans"));
assert_eq!(cursor.text(), Some("0:6"));
Expand All @@ -1259,10 +1259,4 @@ pub async fn replace_text() {
assert_eq!(content.text(), Some("Hello🦀aceans\nHello Rustaceans"));
assert_eq!(cursor.text(), Some("0:6"));
}

#[cfg(target_os = "linux")]
{
assert_eq!(content.text(), Some("Hell🦀aceans\nHello Rustaceans"));
assert_eq!(cursor.text(), Some("0:5"));
}
}

0 comments on commit c9a795b

Please sign in to comment.