-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (46 loc) · 1.44 KB
/
index.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
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Mocha Tests</title>
<link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script type="module" src="https://unpkg.com/chai/chai.js"></script>
<script type="module" src="https://unpkg.com/mocha/mocha.js"></script>
<script type="module" class="mocha-init">
mocha.setup("bdd");
mocha.checkLeaks();
</script>
<!--
Using the bundled code, loads the `oakRetoolHelper`
object into the global scope.
-->
<script type="module" src="../lib/bundle/index.js"></script>
<script type="module">
describe("OakRetoolHelpers", () => {
describe("slugify", () => {
it("slugifies a string", () => {
chai.assert(
OakRetoolHelpers.slugify("This is a test"),
"this-is-a-test"
);
});
it("handles special characters", () => {
chai.assert(
OakRetoolHelpers.slugify(
" ©𝄢𝄫🎵 Hello World µ˜∫√ ≈ & ćøḿṕæňÿ …ƒ´¬∂∑≈¬¬¬¬¬¬ --- "
),
"hello-world-and-company"
);
});
});
});
</script>
<script type="module" class="mocha-exec">
mocha.run();
</script>
</body>
</html>