Skip to content

Commit 9846115

Browse files
committed
test: Fix tests
1 parent 0c235f1 commit 9846115

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/renderer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,9 @@ mod tests {
528528
use ratatui::Terminal;
529529
use std::env;
530530
fn assert_buffer(mut buffer: Buffer, terminal: &Terminal<TestBackend>) {
531-
assert_eq!(buffer.area, terminal.backend().size().unwrap());
531+
let size = terminal.backend().size().unwrap();
532+
assert_eq!(buffer.area.width, size.width);
533+
assert_eq!(buffer.area.height, size.height);
532534
for x in 0..buffer.area().width {
533535
for y in 0..buffer.area().height {
534536
buffer

0 commit comments

Comments
 (0)