Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jul 27, 2023
1 parent 48e6d92 commit 4d2794a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions components/chainhook-sdk/src/chainhooks/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
use chainhook_types::{StacksChainEvent, StacksChainUpdatedWithBlocksData, StacksBlockUpdate};
use super::{
stacks::evaluate_stacks_chainhooks_on_chain_event,
types::{StacksChainhookSpecification, StacksPrintEventBasedPredicate},
};
use crate::chainhooks::types::{HookAction, StacksPredicate};
use crate::utils::Context;
use chainhook_types::StacksNetwork;
use crate::chainhooks::types::{StacksPredicate, HookAction};
use super::{stacks::evaluate_stacks_chainhooks_on_chain_event, types::{StacksChainhookSpecification, StacksPrintEventBasedPredicate}};
use chainhook_types::{StacksBlockUpdate, StacksChainEvent, StacksChainUpdatedWithBlocksData};

pub mod fixtures;

Expand All @@ -15,7 +18,7 @@ fn test_stacks_predicate_print_event() {
parent_microblocks_to_apply: vec![],
parent_microblocks_to_rollback: vec![],
}],
confirmed_blocks: vec![]
confirmed_blocks: vec![],
});

// Prepare predicate
Expand All @@ -42,6 +45,7 @@ fn test_stacks_predicate_print_event() {
};

let predicates = vec![&print_predicate];
let (triggered, _blocks) = evaluate_stacks_chainhooks_on_chain_event(&event, predicates, &Context::empty());
let (triggered, _blocks) =
evaluate_stacks_chainhooks_on_chain_event(&event, predicates, &Context::empty());
assert_eq!(triggered.len(), 1);
}
}

0 comments on commit 4d2794a

Please sign in to comment.