Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"curly": true,
"eqeqeq": true,
"nocomma": true,
"strict": "global",
"strict": false,
"globals": {
"require": false,
"module": false,
"global": false,
"describe": false,
"it": false,
"expect": false
}
},
"esversion": 6
}
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js
node_js:
- "node"
script:
- npm update
- node_modules/jsdoc/./jsdoc.js src/testCase.js
deploy:
-provider: pages
-skip_cleanup: true
-github-token: $token
-keep-history: true
-local_dir: out/index.html
-on: branch
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"author": "",
"license": "ISC",
"devDependencies": {
"jsdoc": "^3.6.3",
"jshint": "^2.10.2",
"mocha": "^5.2.0"
}
},
"dependencies": {}
}
8 changes: 7 additions & 1 deletion src/testCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ class testCase {

// TODO but not like this : https://www.monkeyuser.com/2017/todo/
getExecutions(){
return null;
var arrayConstructor = [].constructor;

var obj = JSON.parse(this.json);
if (undefined !== obj.executions && obj.executions.constructor === arrayConstructor) {
return obj.executions;
}
return false;
}
}

Expand Down