Skip to content

Commit

Permalink
style(protractor): corrected linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-molak committed Aug 16, 2020
1 parent 15c75fb commit 4f99651
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/protractor/src/screenplay/interactions/Select.ts
Expand Up @@ -30,7 +30,7 @@ class SelectOption implements Interaction {
}

resolveValueAs(actor: UsesAbilities & AnswersQuestions) {
if (typeof this.value === "string") {
if (typeof this.value === 'string') {
return Promise.resolve(this.value);
} else {
return actor.answer(this.value);
Expand All @@ -51,7 +51,10 @@ class SelectOption implements Interaction {

class SelectOptions implements Interaction {

constructor(private values: string[] | Question<Promise<string[]>> & RelativeQuestion<Question<ElementFinder> | ElementFinder, Promise<string[]>>, private target: Question<ElementFinder> | ElementFinder) {
constructor(
private values: string[] | Question<Promise<string[]>> & RelativeQuestion<Question<ElementFinder> | ElementFinder, Promise<string[]>>,
private target: Question<ElementFinder> | ElementFinder
) {
}

resolveValuesAs(actor: AnswersQuestions) {
Expand Down Expand Up @@ -91,7 +94,7 @@ class SelectText implements Interaction {
}

resolveValueAs(actor: UsesAbilities & AnswersQuestions) {
if (typeof this.value === "string") {
if (typeof this.value === 'string') {
return Promise.resolve(this.value);
} else {
return actor.answer(this.value);
Expand All @@ -112,7 +115,10 @@ class SelectText implements Interaction {

class SelectTextValues implements Interaction {

constructor(private values: string[] | Question<Promise<string[]>> & RelativeQuestion<Question<ElementFinder> | ElementFinder, Promise<string[]>>, private target: Question<ElementFinder> | ElementFinder) {
constructor(
private values: string[] | Question<Promise<string[]>> & RelativeQuestion<Question<ElementFinder> | ElementFinder, Promise<string[]>>,
private target: Question<ElementFinder> | ElementFinder
) {
}

resolveValuesAs(actor: AnswersQuestions) {
Expand Down

0 comments on commit 4f99651

Please sign in to comment.