mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-14 00:27:12 +00:00
17 lines
318 B
Rust
17 lines
318 B
Rust
use super::*;
|
|
use crate::counters_page as ui;
|
|
use pretty_assertions::assert_eq;
|
|
|
|
#[wasm_bindgen_test]
|
|
fn should_increase_the_number_of_counters() {
|
|
// Given
|
|
ui::view_counters();
|
|
|
|
// When
|
|
ui::add_counter();
|
|
ui::add_counter();
|
|
ui::add_counter();
|
|
|
|
// Then
|
|
assert_eq!(ui::counters(), 3);
|
|
}
|