summaryrefslogtreecommitdiff
path: root/js/test/test.html
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-09 03:50:48 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-09 03:50:48 -0400
commit2cff700e3e59adc2bfcd4b2c536675dfdeb96312 (patch)
treedfe4eb712a521e3a4bd5d4ae3113ab6f7053684f /js/test/test.html
parentfc93b32955b3a30ad884e4a9b14ebe052b86f120 (diff)
downloadluigi-template-2cff700e3e59adc2bfcd4b2c536675dfdeb96312.tar.bz2
luigi-template-2cff700e3e59adc2bfcd4b2c536675dfdeb96312.zip
js: rm test.js, add test/{test.html,*.js} based on mocha/chai
Diffstat (limited to 'js/test/test.html')
-rw-r--r--js/test/test.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/js/test/test.html b/js/test/test.html
new file mode 100644
index 0000000..6448e10
--- /dev/null
+++ b/js/test/test.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang='en-US'>
+ <head>
+ <meta charset='utf-8'/>
+ <title>Luigi Template Mocha Tests</title>
+ <link href='https://unpkg.com/mocha@5.2.0/mocha.css' rel='stylesheet' />
+ </head>
+
+ <body>
+ <div id='mocha'></div>
+
+ <script src='../luigi-template.js'></script>
+ <script src='https://unpkg.com/chai/chai.js'></script>
+ <script src='https://unpkg.com/mocha@5.2.0/mocha.js'></script>
+
+ <script>mocha.setup('bdd')</script>
+ <script src='template.js'></script>
+ <script src='filters.js'></script>
+ <script src='cache.js'></script>
+ <script src='errors.js'></script>
+ <script src='default-filters.js'></script>
+ <script>
+ mocha.checkLeaks();
+ mocha.run();
+ </script>
+ </body>
+</html>
+