Skip to content

Commit 4fd88e6

Browse files
committed
fix doc tests
1 parent aff76e0 commit 4fd88e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/yew-test-runner/src/procedural.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ pub trait TestCase {
204204
/// # Example
205205
///
206206
/// ```no_run
207-
/// let test_runner = TestRunner::new();
207+
/// use yew::html;
208+
/// use yew_test_runner::procedural::{TestCase, TestRunner};
209+
///
210+
/// let mut test_runner = TestRunner::new();
208211
/// test_runner
209212
/// .render(html! {
210213
/// <button>{"Click me!"}</button>

0 commit comments

Comments
 (0)