diff options
Diffstat (limited to 'tests/test_spans.rs')
-rw-r--r-- | tests/test_spans.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs index eb93d43..fdb9a78 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -10,7 +10,7 @@ use codespan_reporting::{ use html5tokenizer::{ offset::PosTrackingReader, reader::{IntoReader, Reader}, - NaiveParser, Token, + NaiveParser, Token, TracingEmitter, }; use insta::assert_snapshot; use similar_asserts::assert_eq; @@ -27,9 +27,12 @@ fn parser<R>(reader: impl IntoReader<'static, Reader = R>) -> Parser where R: Reader<Error = Infallible> + 'static, { - NaiveParser::new(PosTrackingReader::new( - Box::new(reader.into_reader()) as Box<dyn Reader<Error = Infallible>> - )) + NaiveParser::new_with_emitter( + PosTrackingReader::new( + Box::new(reader.into_reader()) as Box<dyn Reader<Error = Infallible>> + ), + TracingEmitter::default(), + ) } fn test_and_annotate<S: AsRef<str> + Clone>( |