From 3e2f780330cd9b53df21f0942cbe93c2ae8e4341 Mon Sep 17 00:00:00 2001 From: Ben Heidemann Date: Sun, 21 Mar 2021 13:37:45 +0000 Subject: [PATCH] test: refactor index.html to include mocha setup as an external script This was done so the sister webpack build can use the same mocha setup script --- tests/index.html | 9 +-------- tests/setup-mocha.js | 8 ++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 tests/setup-mocha.js diff --git a/tests/index.html b/tests/index.html index 1561f12..a498afb 100644 --- a/tests/index.html +++ b/tests/index.html @@ -11,14 +11,7 @@ - + diff --git a/tests/setup-mocha.js b/tests/setup-mocha.js new file mode 100644 index 0000000..d707bbb --- /dev/null +++ b/tests/setup-mocha.js @@ -0,0 +1,8 @@ +var mocha = require('mocha'); + +mocha.setup('bdd').timeout(10000).slow(250); + +window.onload = function() { + mocha.checkLeaks(); + mocha.run(); +};