<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Mocha Tests</title>
    <link rel="stylesheet" href="../bower_components/mocha/mocha.css" />
  </head>
  <body>
    <div id="mocha"></div>
    <script src="../bower_components/expect/index.js"></script>
    <script src="../bower_components/mocha/mocha.js"></script>
    <script src="../bower_components/fetch/fetch.js"></script>
    <script>
      /* global mocha */

      mocha.setup("bdd");
    </script>
    <script src="../src/main.js"></script>
    <script src="main.js"></script>
    <script charset="utf-8">
      mocha.checkLeaks();
      mocha.globals(["fetch"]);
      mocha.run();
    </script>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Mocha Tests</title>
    <link rel="stylesheet" href="../bower_components/mocha/mocha.css" />
  </head>
  <body>
    <div id="mocha"></div>
    <script src="../bower_components/expect/index.js"></script>
    <script src="../bower_components/mocha/mocha.js"></script>
    <script src="../bower_components/fetch/fetch.js"></script>
    <script>
      /* global mocha */

      mocha.setup("bdd");
    </script>
    <script src="../src/main.js"></script>
    <script src="main.js"></script>
    <script charset="utf-8">
      mocha.checkLeaks();
      mocha.globals(["fetch", "___browserSync___oldSocketIo", "io", "___browserSync___"]);
      mocha.run();
    </script>
  </body>
</html>

Fix leakage check if browser-sync is used
Fix leakage check if browser-sync is used
