Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ma branche #27

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"describe": false,
"it": false,
"expect": false
}
},
"esversion": 6
}
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: node_js
node_js:
- "node"
script:
- node_modules/.bin/jshint src
- npm test
deploy:
provider: pages
skip-cleanup: true
github-token: $token
keep-history: true
on:
branch: master

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"author": "",
"license": "ISC",
"devDependencies": {
"jsdoc": "^3.6.3",
"jshint": "^2.10.2",
"mocha": "^5.2.0"
}
}
11 changes: 10 additions & 1 deletion src/testCase.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

class testCase {
constructor(json) {
this.json = json;
Expand All @@ -17,7 +19,14 @@ class testCase {

// TODO but not like this : https://www.monkeyuser.com/2017/todo/
getExecutions(){
return null;
var obj = JSON.parse(this.json);
if (undefined !== obj.executions) {
if(Array.isArray(obj.executions))
{
return obj.executions;
}
}
return false;
}
}

Expand Down