message: chore: wait for message to be dispatched
diff: @@ -229,6 +229,8 @@ describe('createRouter', () => {
  },
  });
  + await new Promise(resolve => setTimeout(resolve, 1000));
  +
  expect(broker).toHaveBeenCalledWith(
  expect.objectContaining({
  createdBy: 'user:default/guest',
  @@ -279,6 +281,8 @@ describe('createRouter', () => {
  },
  });
  + await new Promise(resolve => setTimeout(resolve, 1000));
  +
  expect(broker).toHaveBeenCalledWith(
  expect.objectContaining({
  createdBy: undefined,
  