"use strict";

var should  = require("should");

var helpRoutes = require("../routes/help.js");



describe("routes/help", function() {
  describe("generateHelpText", function() {
    /* eslint-disable mocha/no-synchronous-tests */
    it("should render the text with token", function() {
      var result = helpRoutes.getText("../test/data/helptext.test.md");
      should(result).equal('<h2>This Is a Help Test</h2>\n<p>Use a <a href="/testlink">link</a> to test tokens.</p>\n');
    });
    /* eslint-enable mocha/no-synchronous-tests */
  });
});




@@ -8,19 +8,21 @@
 rict%22;%0A%0A
-var
+const
  should 
@@ -42,16 +42,68 @@
 hould%22);
+%0Aconst initialise = require(%22../util/initialise.js%22)
 %0A%0Avar he
@@ -183,16 +183,91 @@
 ion() %7B%0A
+  before(async function() %7B%0A    await initialise.initialiseModules();%0A  %7D)%0A
   descri

Initialise Modules in help tests