Minor fixes for tests (#4686)
* Suggested method for correcting integration tests * Use static atomics for simplicity This is consistent with the test immediately below. * Add assertions to some tests, comments to others This should fix a handful of tests that didn't correctly do their test. In other places, comments should make it clearer *why* tests are how they are. * Be consistent with existing imports * remove bad test * nit * fix compile errrs --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
679ba83652
commit
79693f8cff
12 files changed
+74
-77
No files matched your search
@@ -1,8 +1,8 @@
|
||||
#![allow(unused, non_upper_case_globals, non_snake_case)]
|
||||
use dioxus::html::p;
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_core::NoOpMutations;
|
||||
use dioxus_core::{generation, ElementId};
|
||||
use dioxus_core::{NoOpMutations, ScopeState};
|
||||
use dioxus_signals::*;
|
||||
use std::cell::RefCell;
|
||||
use std::collections::HashMap;
|
||||
@@ -141,6 +141,10 @@ fn memos_prevents_component_rerun() {
|
||||
assert_eq!(current_counter.component, 2);
|
||||
assert_eq!(current_counter.memo, 3);
|
||||
}
|
||||
|
||||
dom.in_scope(ScopeId(3), || {
|
||||
assert!(consume_context::<ErrorContext>().error().is_none())
|
||||
});
|
||||
}
|
||||
|
||||
// Regression test for https://github.com/DioxusLabs/dioxus/issues/2990
|
||||
|
||||
Reference in new issue
Block a user