Skip to content

Commit

Permalink
move custom comment to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Aug 6, 2022
1 parent 1a7dc47 commit 5932423
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,24 @@ class Reporter {
*
* @param on
* @param config
* @param customComment provide a custom comment if you want to add something to the result comment
*/
constructor(on, config) {
constructor(on, config, customComment) {
this.on = on;

/* eslint-disable no-undef */
this.config = new ConfigService(config.env.testrail);

// clean and assign our custom comment for our test results
this.customComment = (customComment !== undefined && customComment !== null) ? customComment : '';

this.testCaseParser = new TestCaseParser();
}

/**
*
* @param customComment provide a custom comment if you want to add something to the result comment
*/
register(customComment) {

// clean and assign our custom comment for our test results
this.customComment = (customComment !== undefined && customComment !== null) ? customComment : '';

register() {

// if our config is not valid
// then do not even register anything
Expand Down

0 comments on commit 5932423

Please sign in to comment.