///
/**
* Alice's `expectRuntimeErrors` is `1.5`, which is not an expectation, and
* nothing throws. The run fails naming the value, rather than reading it as
* no expectation and passing.
*/
import { action, multiUserTest, pattern, TESTS, Writable } from "commonfabric";
export interface ErrorSetup {
note: Writable;
}
export const setup = pattern, ErrorSetup>(() => ({
note: Writable.of(""),
}));
export const alice = pattern<{ setup: ErrorSetup }>(() => {
const quiet = action(() => {
// Deliberately does not throw.
});
return { [TESTS]: [{ action: quiet }], expectRuntimeErrors: 1.5 };
});
export default multiUserTest({ setup, participants: { alice } });