function assertions(msg) {
			assert.equal(msg.data.token, "called", "BeaconRequest#send has been called");
			window.removeEventListener("message", assertions);
			done();
		}
// checks the if the stub has been called
checks the if the stub has been called
checks the if the stub has been called
function assertions(msg) {
			assert.equal(msg.data.token, "called", "BeaconRequest#send has been called");
			window.removeEventListener("message", assertions);
			done();
		}
function assertions ( msg ) { assert . equal ( msg . data . token , "called" , "BeaconRequest#send has been called" ) ; window . removeEventListener ( "message" , assertions ) ; done ( ) ; }
checks the if the stub has been called
checks the if the stub has been called