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 on master #4

Open
wants to merge 10 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
39 changes: 39 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
language: node_js
node_js:
- "node"

# apt addons

# cache components

# before_install

install:

before_script:
- echo "VOIIIICI UN TEEEESTE"
- npm update

script:
- node_modules/.bin/jshint src
- npm test

# before_cache

# after_success or after_failure

before_deploy:
- node_modules/.bin/jsdoc src

deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: ma_branche

# after_deploy

# after_script

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"jshint": "^2.9.6",
"mocha": "^5.2.0"
}
}
10 changes: 9 additions & 1 deletion src/testCase.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/*jshint esversion: 6 */
"use strict";
class testCase {
constructor(json) {
this.json = json;
Expand All @@ -17,7 +19,13 @@ 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 && Array.isArray(obj.executions)) {
return obj.executions;
}

return false;
}
}

Expand Down
1 change: 0 additions & 1 deletion test/testCase.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const assert = require('assert');
const TestCase = require('../src/testCase.js');

Expand Down