naja_async_runtime 0.3.4

A lightweight universal runtime for futures.
#![ cfg( target_arch = "wasm32" )]

// wasm_bindgen_test currently runs all tests in the same context, so we can only init once.
//
// Tested:
//
// - ✔ trigger double init error



use
{
	wasm_bindgen_test :: { * } ,
	async_runtime     :: { * } ,
};

wasm_bindgen_test_configure!(run_in_browser);



#[wasm_bindgen_test]
//
fn double_init()
{
	             rt::init( RtConfig::Local ).expect( "no double executor init" );
	let result = rt::init( RtConfig::Local );

	assert_eq!( &RtErrKind::DoubleExecutorInit, result.unwrap_err().kind() );
}