app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

commit fa2b520c8d21cb04b2b857da7192529608d90870
parent 0a8e2788db5e0e012314b53543138e0aa79043d7
Author: triesap <triesap@radroots.dev>
Date:   Mon, 19 Jan 2026 15:11:14 +0000

app: fix app init test without Debug bound

- replace expect_err with explicit match in init test
- avoid requiring Debug for AppBackends
- preserve idb error assertion on non-wasm
- keep test intent and behavior unchanged

Diffstat:
Mapp/src/init.rs | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/src/init.rs b/app/src/init.rs @@ -95,8 +95,10 @@ mod tests { #[test] fn app_init_backends_maps_idb_errors() { - let err = futures::executor::block_on(app_init_backends()) - .expect_err("idb bootstrap should error on non-wasm"); + let err = match futures::executor::block_on(app_init_backends()) { + Ok(_) => panic!("idb bootstrap should error on non-wasm"), + Err(err) => err, + }; assert_eq!( err, AppInitError::Idb(RadrootsClientIdbStoreError::IdbUndefined)