message: API: Move shared /api/message test functions
  ...above the outer "describe" for (hopefully) better readability.
diff: @@ -21,13 +21,6 @@ function getRandomRoomFromCourse(course: ICourse): IChatRoom {
  return course.chatRooms[Math.floor(Math.random() * course.chatRooms.length)];
  }
  -describe('Message', async () => {
  - // Before each test we reset the database
  - beforeEach(async () => {
  - // load fixtures
  - await fixtureLoader.load();
  - });
  -
  async function simpleRoomSetup() {
  const course = await FixtureUtils.getRandomCourse() as ICourseModel;
  const room = getRandomRoomFromCourse(course);
  @@ -71,6 +64,13 @@ describe('Message', async () => {
  expect(result).to.have.status(403);
  }
  +describe('Message', async () => {
  + // Before each test we reset the database
  + beforeEach(async () => {
  + // load fixtures
  + await fixtureLoader.load();
  + });
  +
  describe(`GET ${BASE_URL}`, async () => {
  it('should fail when parameter room missing', async () => {
  await testMissingRoom();
  