Browse Source

Load mocha as first script on test scenario

Also remove uneeded jQuery import

Fixes #493
pull/496/head
Sergi Almacellas Abellana 7 years ago
parent
commit
30f8a39701
  1. 4
      tests/tests.html

4
tests/tests.html

@ -2,12 +2,11 @@
<head> <head>
<title>Papa Parse Tests</title> <title>Papa Parse Tests</title>
<meta charset="utf-8"> <meta charset="utf-8">
<script src="../node_modules/mocha/mocha.js"></script>
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" /> <link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="../papaparse.js"></script> <script src="../papaparse.js"></script>
<script src="http://chaijs.com/chai.js"></script> <script src="http://chaijs.com/chai.js"></script>
<script src="../node_modules/mocha/mocha.js"></script>
<script>mocha.setup('bdd')</script> <script>mocha.setup('bdd')</script>
<script src="test-cases.js"></script> <script src="test-cases.js"></script>
@ -21,7 +20,6 @@
} else { } else {
mocha.checkLeaks(); mocha.checkLeaks();
mocha.globals(['jQuery']);
mocha.run(); mocha.run();
} }
</script> </script>

Loading…
Cancel
Save