mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Fix tests
This commit is contained in:
parent
299906346e
commit
17c9b4ca96
@ -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)],
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user