Skip to content

Commit 8d1feee

Browse files
committed
update tests, add bonus sub-iteration in 3rd iteration
1 parent 8af93b4 commit 8d1feee

File tree

4 files changed

+348
-335
lines changed

4 files changed

+348
-335
lines changed

starter-code/SpecRunner.html

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<title>Jasmine Spec Runner v2.8.0</title>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Jasmine Spec Runner v2.8.0</title>
66

7-
<link rel="shortcut icon" type="image/png" href="jasmine/jasmine-2.8.0/jasmine_favicon.png">
8-
<link rel="stylesheet" href="jasmine/jasmine-2.8.0/jasmine.css">
7+
<link rel="shortcut icon" type="image/png" href="jasmine/jasmine-2.8.0/jasmine_favicon.png" />
8+
<link rel="stylesheet" href="jasmine/jasmine-2.8.0/jasmine.css" />
99

10-
<script src="jasmine/jasmine-2.8.0/jasmine.js"></script>
11-
<script src="jasmine/jasmine-2.8.0/jasmine-html.js"></script>
12-
<script src="jasmine/jasmine-2.8.0/boot.js"></script>
10+
<script src="jasmine/jasmine-2.8.0/jasmine.js"></script>
11+
<script src="jasmine/jasmine-2.8.0/jasmine-html.js"></script>
12+
<script src="jasmine/jasmine-2.8.0/boot.js"></script>
1313

14-
<!-- include source files here... -->
15-
<script src="src/functions-and-arrays.js"></script>
14+
<!-- include source files here... -->
15+
<script src="src/functions-and-arrays.js"></script>
1616

17-
<!-- include spec files here... -->
18-
<script src="tests/FunctionsAndArraysSpec.js"></script>
17+
<!-- include spec files here... -->
18+
<script src="tests/functions-and-arrays.spec.js"></script>
19+
</head>
1920

20-
</head>
21-
22-
<body>
23-
</body>
21+
<body></body>
2422
</html>

starter-code/src/functions-and-arrays.js

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,7 @@ const numbers = [6, 12, 1, 18, 13, 16, 2, 1, 8, 10];
1212
const numbersAvg = [2, 6, 9, 10, 7, 4, 1, 9];
1313

1414
// Level 2: Array of strings
15-
const wordsArr = [
16-
'seat',
17-
'correspond',
18-
'linen',
19-
'motif',
20-
'hole',
21-
'smell',
22-
'smart',
23-
'chaos',
24-
'fuel',
25-
'palace'
26-
];
15+
const wordsArr = ['seat', 'correspond', 'linen', 'motif', 'hole', 'smell', 'smart', 'chaos', 'fuel', 'palace'];
2716

2817
// Iteration #5: Unique arrays
2918
const wordsUnique = [
@@ -41,16 +30,7 @@ const wordsUnique = [
4130
];
4231

4332
// Iteration #6: Find elements
44-
const wordsFind = [
45-
'machine',
46-
'subset',
47-
'trouble',
48-
'starting',
49-
'matter',
50-
'eating',
51-
'truth',
52-
'disobedience'
53-
];
33+
const wordsFind = ['machine', 'subset', 'trouble', 'starting', 'matter', 'eating', 'truth', 'disobedience'];
5434

5535
// Iteration #7: Count repetition
5636
const wordsCount = [

starter-code/tests/FunctionsAndArraysSpec.js

Lines changed: 0 additions & 297 deletions
This file was deleted.

0 commit comments

Comments
 (0)