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
@@ -287,6 +287,10 @@ fn create() {
|
||||
let mut vdom =
|
||||
VirtualDom::new_with_props(create_random_element, DepthProps { depth: 0, root: true });
|
||||
vdom.rebuild(&mut NoOpMutations);
|
||||
|
||||
vdom.in_scope(ScopeId::APP, || {
|
||||
assert!(consume_context::<ErrorContext>().error().is_none())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -317,6 +321,10 @@ fn diff() {
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
vdom.in_scope(ScopeId::APP, || {
|
||||
assert!(consume_context::<ErrorContext>().error().is_none())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user