-
Notifications
You must be signed in to change notification settings - Fork 8
/
SpecRunner.html
45 lines (41 loc) · 1.39 KB
/
SpecRunner.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html>
<head>
<title>Algorithms Meetup -- Fuzzy Search Test Suite [Mocha]</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="lib/css/mocha.css" />
<script src="lib/jquery.js"></script>
<script src="lib/picomodal.js"></script>
<script src="lib/tweetit.js"></script>
<script src="lib/expect.js"></script>
<script src="lib/mocha.js"></script>
<script src="lib/sinon.js"></script>
<script>
// Tell mocha to use bdd-style expects
mocha.setup('bdd');
</script>
<!-- Load tests and helpers here -->
<script src="src/levenshtein.js"></script>
<script src="src/fuzzySearch.js"></script>
<script src="src/assessRelevance.js"></script>
<script src="spec/commonNouns.js"></script>
<script src="spec/levenshtein.spec.js"></script>
<script src="spec/fuzzySearch.spec.js "></script>
<script src="spec/assessRelevance.spec.js "></script>
<script>
// Mocha expects a global onload var here and automagically executes it on pageload
mocha.setup({globals: ['answer', 'cache1', 'cache2']});
onload = function(){
var runner = mocha.run();
runner.on('end', function() {
if(!this.failures){
// window.tweetit();
}
});
};
</script>
</head>
<body>
<div id="mocha"></div>
</body>
</html>