Fix tests

This commit is contained in:
Mikayla 2023-08-08 10:03:55 -07:00
parent 299906346e
commit 17c9b4ca96
No known key found for this signature in database
2 changed files with 7 additions and 5 deletions

View File

@ -35,8 +35,8 @@ fn test_update_channels(cx: &mut AppContext) {
&channel_store, &channel_store,
&[ &[
// //
(0, "a", true), (0, "a", false),
(0, "b", false), (0, "b", true),
], ],
cx, cx,
); );
@ -65,9 +65,9 @@ fn test_update_channels(cx: &mut AppContext) {
assert_channels( assert_channels(
&channel_store, &channel_store,
&[ &[
(0, "a", true), (0, "a", false),
(1, "y", true), (1, "y", false),
(0, "b", false), (0, "b", true),
(1, "x", false), (1, "x", false),
], ],
cx, cx,
@ -82,6 +82,7 @@ fn update_channels(
channel_store.update(cx, |store, cx| store.update_channels(message, cx)); channel_store.update(cx, |store, cx| store.update_channels(message, cx));
} }
#[track_caller]
fn assert_channels( fn assert_channels(
channel_store: &ModelHandle<ChannelStore>, channel_store: &ModelHandle<ChannelStore>,
expected_channels: &[(usize, &str, bool)], expected_channels: &[(usize, &str, bool)],

View File

@ -2401,6 +2401,7 @@ mod tests {
language::init(cx); language::init(cx);
editor::init(cx); editor::init(cx);
project_panel::init_settings(cx); project_panel::init_settings(cx);
collab_ui::init(&app_state, cx);
pane::init(cx); pane::init(cx);
project_panel::init((), cx); project_panel::init((), cx);
terminal_view::init(cx); terminal_view::init(cx);