app

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

commit f94716fe92843bad51d264240cc3d561cf572f29
parent f8ed50d4bd257aee6d7e4780733a67d1f4845add
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)