Skip to content

Commit

Permalink
changed bad test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Dec 18, 2024
1 parent b060fac commit 8318196
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions quadratic-core/src/grid/sheet/borders/borders_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,6 @@ impl Borders {
}
}

// Then check if current borders exist where update has none
if border_update.left.is_none() && !self.left.is_all_default() {
return false;
}
if border_update.right.is_none() && !self.right.is_all_default() {
return false;
}
if border_update.top.is_none() && !self.top.is_all_default() {
return false;
}
if border_update.bottom.is_none() && !self.bottom.is_all_default() {
return false;
}

true
}

Expand Down Expand Up @@ -167,6 +153,6 @@ mod tests {
assert!(!borders.is_toggle_borders(&border_update));

borders.set_style_cell(pos![A1], BorderStyleCell::all());
assert!(!borders.is_toggle_borders(&border_update));
assert!(borders.is_toggle_borders(&border_update));
}
}

0 comments on commit 8318196

Please sign in to comment.