summaryrefslogtreecommitdiffstats
path: root/src/modules/list/tests/show_commit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/list/tests/show_commit.rs')
-rw-r--r--src/modules/list/tests/show_commit.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/list/tests/show_commit.rs b/src/modules/list/tests/show_commit.rs
index 800191c..2a7ddac 100644
--- a/src/modules/list/tests/show_commit.rs
+++ b/src/modules/list/tests/show_commit.rs
@@ -5,12 +5,12 @@ use crate::{assert_results, process::Artifact, testutil::module_test};
fn when_hash_available() {
module_test(
&["pick aaa c1"],
- &[Event::from(MetaEvent::ShowCommit)],
+ &[Event::from(StandardEvent::ShowCommit)],
|mut test_context| {
let mut module = create_list(&Config::new(), test_context.take_todo_file());
assert_results!(
test_context.handle_event(&mut module),
- Artifact::Event(Event::from(MetaEvent::ShowCommit)),
+ Artifact::Event(Event::from(StandardEvent::ShowCommit)),
Artifact::ChangeState(State::ShowCommit)
);
},
@@ -19,11 +19,11 @@ fn when_hash_available() {
#[test]
fn when_no_selected_line() {
- module_test(&[], &[Event::from(MetaEvent::ShowCommit)], |mut test_context| {
+ module_test(&[], &[Event::from(StandardEvent::ShowCommit)], |mut test_context| {
let mut module = create_list(&Config::new(), test_context.take_todo_file());
assert_results!(
test_context.handle_event(&mut module),
- Artifact::Event(Event::from(MetaEvent::ShowCommit))
+ Artifact::Event(Event::from(StandardEvent::ShowCommit))
);
});
}
@@ -32,12 +32,12 @@ fn when_no_selected_line() {
fn do_not_when_hash_not_available() {
module_test(
&["exec echo foo"],
- &[Event::from(MetaEvent::ShowCommit)],
+ &[Event::from(StandardEvent::ShowCommit)],
|mut test_context| {
let mut module = create_list(&Config::new(), test_context.take_todo_file());
assert_results!(
test_context.handle_event(&mut module),
- Artifact::Event(Event::from(MetaEvent::ShowCommit))
+ Artifact::Event(Event::from(StandardEvent::ShowCommit))
);
},
);