forked from SEIR-321-Batch/daily-js-code-challenges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-tests-by-opening-in-browser.html
49 lines (44 loc) · 2.17 KB
/
run-tests-by-opening-in-browser.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
49
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner v3.3.0</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-3.3.0/jasmine_favicon.png">
<link rel="stylesheet" href="lib/jasmine-3.3.0/jasmine.css">
<style>
main {
border: 2px solid grey;
border-radius: 10px;
color: grey;
margin: 20px;
padding: 20px;
font-family: Helvetica;
}
main img {
height: 40px;
margin-right: 15px;
}
</style>
<script src="lib/jasmine-3.3.0/jasmine.js"></script>
<script src="lib/jasmine-3.3.0/jasmine-html.js"></script>
<script src="lib/jasmine-3.3.0/boot.js"></script>
<!-- include source files here... -->
<script src="challenges.js"></script>
<!-- include spec files here... -->
<script src="spec/ChallengesSpec.js"></script>
</head>
<body>
<main>
<h1><img src="https://i.imgur.com/2y0Lyzy.png">Instructions</h1>
<ul>
<li>By default, Jasmine (the testing framework) will run the tests in random order. To prevent this, click on the <strong>Options</strong> button on the near the top-right of the page and uncheck the <em>run tests in random order</em> checkbox.</li>
<li>Solve the challenges by writing functions in the <code>challenges.js</code> file only. <strong>Do not modify any other files.</strong></li>
<li>Each code challenge requires writing a single function to solve.</li>
<li>Be sure to name the function <strong>exactly</strong> as specified by the challenge.</li>
<li>The default display shows only the challenges that are failing. To see an overall summary of all challenges, click the "<strong>Spec List</strong>" link.</li>
<li>Your instructors will be checking your progress from time-to-time. <strong>Don't move any of the files from where they currently are in the class repo</strong> - simply solve the challenges, commit your work, and <code>$ git push origin master</code>.</li>
<li>After solving a challenge, feel free to check the solution(s) contained in <code>solutions.js</code>. If multiple solutions are provided, they are typically shown in increasing order of "elegance".</li>
</ul>
</main>
</body>
</html>