Skip to content

Commit cfcecf8

Browse files
authored
Fix issues with Jasmine unit tests not being detected
Merge pull request #9 from ClydeDz/development
2 parents c68425c + 43c5e0e commit cfcecf8

File tree

17 files changed

+5960
-55
lines changed

17 files changed

+5960
-55
lines changed

SpecRunner.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
4+
<head>
5+
<meta charset="utf-8" />
6+
<title>Jasmine Spec Runner</title>
7+
<link href="css/vendor/jasmine/jasmine.css" rel="stylesheet" />
8+
<script src="js/vendor/jasmine/jasmine.js"></script>
9+
<script src="js/vendor/jasmine/jasmine-html.js"></script>
10+
<script src="js/vendor/jasmine/console.js"></script>
11+
<script src="js/vendor/jasmine/boot.js"></script>
12+
<script src="js/modules/globalSettings.js"></script>
13+
<script src="js/modules/miscHelper.js"></script>
14+
<script src="js/modules/urlHandler.js"></script>
15+
<script src="js/tests/miscHelper.test.js"></script>
16+
<script src="js/tests/urlHandler.test.js"></script>
17+
</head>
18+
<body>
19+
20+
</body>
21+
</html>

chutzpah.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"Framework": "jasmine",
3+
"References": [
4+
{ "Path": "js/modules/globalSettings.js" },
5+
{ "Path": "js/modules/miscHelper.js" },
6+
{ "Path": "js/modules/urlHandler.js" }
7+
],
8+
"Tests": [
9+
{
10+
"Path": "js/tests",
11+
"Includes": [ "*.test.js" ]
12+
}
13+
]
14+
}

cicd-docs.sln

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ EndProject
2727
Global
2828
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2929
Debug|Any CPU = Debug|Any CPU
30+
Release|Any CPU = Release|Any CPU
3031
EndGlobalSection
3132
GlobalSection(ProjectConfigurationPlatforms) = postSolution
3233
{4F63E008-824A-4234-A2E5-DAACA19722D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3334
{4F63E008-824A-4234-A2E5-DAACA19722D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{4F63E008-824A-4234-A2E5-DAACA19722D8}.Release|Any CPU.ActiveCfg = Debug|Any CPU
36+
{4F63E008-824A-4234-A2E5-DAACA19722D8}.Release|Any CPU.Build.0 = Debug|Any CPU
3437
EndGlobalSection
3538
GlobalSection(SolutionProperties) = preSolution
3639
HideSolutionNode = FALSE

css/vendor/jasmine/jasmine.css

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.45 KB
Loading

js/bundle-js.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,9 +1134,9 @@ function getUrlVars(window) {
11341134
return [];
11351135
}
11361136

1137-
let vars = [], hash;
1138-
let hashes = splitIndividualQueryStringKeys(window.location.href);
1139-
for (let i = 0; i < hashes.length; i++) {
1137+
var vars = [], hash;
1138+
var hashes = splitIndividualQueryStringKeys(window.location.href);
1139+
for (var i = 0; i < hashes.length; i++) {
11401140
hash = hashes[i].split('=');
11411141
vars.push(hash[0]);
11421142
vars[hash[0]] = hash[1];
@@ -3351,7 +3351,7 @@ function isEmpty(obj) {
33513351
}
33523352

33533353
function getRandomRGBA() {
3354-
let o = Math.round, r = Math.random, s = 255;
3354+
var o = Math.round, r = Math.random, s = 255;
33553355
return 'rgba(' + o(r() * s) + ',' + o(r() * s) + ',' + o(r() * s) + ', 0.28)';
33563356
}
33573357

js/bundle-js.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/modules/miscHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function isEmpty(obj) {
1616
}
1717

1818
function getRandomRGBA() {
19-
let o = Math.round, r = Math.random, s = 255;
19+
var o = Math.round, r = Math.random, s = 255;
2020
return 'rgba(' + o(r() * s) + ',' + o(r() * s) + ',' + o(r() * s) + ', 0.28)';
2121
}
2222

js/modules/tests/Chutzpah.json

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

js/modules/urlHandler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ function getUrlVars(window) {
88
return [];
99
}
1010

11-
let vars = [], hash;
12-
let hashes = splitIndividualQueryStringKeys(window.location.href);
13-
for (let i = 0; i < hashes.length; i++) {
11+
var vars = [], hash;
12+
var hashes = splitIndividualQueryStringKeys(window.location.href);
13+
for (var i = 0; i < hashes.length; i++) {
1414
hash = hashes[i].split('=');
1515
vars.push(hash[0]);
1616
vars[hash[0]] = hash[1];

0 commit comments

Comments
 (0)