Skip to content

Commit

Permalink
fix: fixed two broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Feb 18, 2023
1 parent 6768f4e commit ed5b5ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/perseus-cli/tests/export_error_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn export_error_page_produces_page() -> Result<(), Box<dyn std::error::Error>> {

dir.child("404.html")
// Going off the default development error pages
.assert(predicate::str::contains("Page not found."));
.assert(predicate::str::contains("Page not found!"));

Ok(())
}
8 changes: 4 additions & 4 deletions packages/perseus/src/state/rx_collections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
//!
//! **Also note:** when iterating over any of these collections to create
//! `View` fragments, you will need to use `create_ref()` to prevent lifetime
//! errors in some more complex cases, like so:
//! errors, like so:
//!
//! ```no_run
//! # use serde::{Serialize, Deserialize};
Expand All @@ -102,13 +102,13 @@
//! # #[auto_scope]
//! # fn view<G: Html>(cx: Scope, state: &StateRx) -> View<G> {
//! // Note the use of `create_ref()` here
//! let list = create_ref(state.list.get());
//! let list = create_ref(cx, state.list.get());
//! let view = View::new_fragment(
//! list.iter()
//! .map(|elem| {
//! // ...
//! # view! {
//! (elem)
//! # view! { cx,
//! (elem.get())
//! }
//! })
//! .collect()
Expand Down

0 comments on commit ed5b5ad

Please sign in to comment.