Skip to content

Commit

Permalink
test: add move row test
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Feb 5, 2025
1 parent 87b43e6 commit 8857aea
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions collab-database/tests/database_test/view_observe_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,26 @@ async fn observe_move_database_view_row_test() {
.await
.get_row_orders_for_view(&second_view_id);
assert_eq!(row_orders.len(), 4);
assert_eq!(row_orders[0].id, row_id_1);
assert_eq!(row_orders[1].id, row_id_2);
assert_eq!(row_orders[2].id, row_id_3);
assert_eq!(row_orders[3].id, row_id_4);
assert_eq!(
row_orders[0].id, row_id_1,
"current row orders: {:?}",
row_orders
);
assert_eq!(
row_orders[1].id, row_id_2,
"current row orders: {:?}",
row_orders
);
assert_eq!(
row_orders[2].id, row_id_3,
"current row orders: {:?}",
row_orders
);
assert_eq!(
row_orders[3].id, row_id_4,
"current row orders: {:?}",
row_orders
);
}

#[tokio::test]
Expand Down

0 comments on commit 8857aea

Please sign in to comment.