# FedCM Testing `fedcm-mojojs-helper.js` exposes `fedcm_mojo_mock_test` which is a specialized `promise_test` which comes pre-setup with the appropriate mocking infrastructure to emulate platform federated auth backend. The mock is passed to the test function as the second parameter. Example usage: ``` ``` The chromium implementation uses the MojoJS shim.