| |
diff --git a/react/javascript/src/components/gherkin/Feature.tsx b/react/javascript/src/components/gherkin/Feature.tsx
index e42d18b9a7d..bec543ca3ca 100644
--- a/react/javascript/src/components/gherkin/Feature.tsx
+++ b/react/javascript/src/components/gherkin/Feature.tsx
@@ -21,9 +21,7 @@ const Feature: React.FunctionComponent = ({ feature }) => {
- {feature.description ? (
-
- ) : null}
+ {feature.description ? : null}
{(feature.children || []).map((child, index) => {
if (child.background) {
diff --git a/react/javascript/src/components/gherkin/FeatureTitle.tsx b/react/javascript/src/components/gherkin/FeatureTitle.tsx
index 9268e0b1d72..d15499f3667 100644
--- a/react/javascript/src/components/gherkin/FeatureTitle.tsx
+++ b/react/javascript/src/components/gherkin/FeatureTitle.tsx
@@ -17,9 +17,7 @@ const FeatureTitle: React.FunctionComponent = ({ id, feature }) => {
-
- {feature.keyword}:
- {' '}
+ {feature.keyword}:{' '}
diff --git a/react/javascript/src/components/gherkin/GherkinDocument.tsx b/react/javascript/src/components/gherkin/GherkinDocument.tsx
index 94c2a2e23e3..7b3a1d5e692 100644
--- a/react/javascript/src/components/gherkin/GherkinDocument.tsx
+++ b/react/javascript/src/components/gherkin/GherkinDocument.tsx
@@ -6,12 +6,8 @@ interface IProps {
gherkinDocument: messages.IGherkinDocument
}
-const GherkinDocument: React.FunctionComponent = ({
- gherkinDocument,
-}) => {
- return gherkinDocument.feature ? (
-
- ) : null
+const GherkinDocument: React.FunctionComponent = ({ gherkinDocument }) => {
+ return gherkinDocument.feature ? : null
}
export default GherkinDocument
diff --git a/react/javascript/src/components/gherkin/HookStep.tsx b/react/javascript/src/components/gherkin/HookStep.tsx
index 63f9f9463fb..0c7200eb0e5 100644
--- a/react/javascript/src/components/gherkin/HookStep.tsx
+++ b/react/javascript/src/components/gherkin/HookStep.tsx
@@ -12,22 +12,16 @@ interface IProps {
const HookStep: React.FunctionComponent = ({ step }) => {
const cucumberQuery = React.useContext(CucumberQueryContext)
- const stepResult = cucumberQuery.getWorstTestStepResult(
- cucumberQuery.getTestStepResults(step.id)
- )
+ const stepResult = cucumberQuery.getWorstTestStepResult(cucumberQuery.getTestStepResults(step.id))
const hook = cucumberQuery.getHook(step.hookId)
const attachments = cucumberQuery.getTestStepsAttachments([step.id])
- if (
- stepResult.status === messages.TestStepFinished.TestStepResult.Status.FAILED
- ) {
+ if (stepResult.status === messages.TestStepFinished.TestStepResult.Status.FAILED) {
const location = hook.sourceReference.location
? hook.sourceReference.uri + ':' + hook.sourceReference.location.line
: hook.sourceReference.javaMethod
- ? hook.sourceReference.javaMethod.className +
- '.' +
- hook.sourceReference.javaMethod.methodName
+ ? hook.sourceReference.javaMethod.className + '.' + hook.sourceReference.javaMethod.methodName
: 'Unknown location'
return (
diff --git a/react/javascript/src/components/gherkin/Keyword.tsx b/react/javascript/src/components/gherkin/Keyword.tsx
index 13d38598038..ff0d06fb0e4 100644
--- a/react/javascript/src/components/gherkin/Keyword.tsx
+++ b/react/javascript/src/components/gherkin/Keyword.tsx
@@ -5,10 +5,7 @@ interface IProps {
className?: string
}
-const Keyword: React.FunctionComponent = ({
- children,
- className = '',
-}) => {
+const Keyword: React.FunctionComponent = ({ children, className = '' }) => {
return {children}
}
diff --git a/react/javascript/src/components/gherkin/ScenarioTitle.tsx b/react/javascript/src/components/gherkin/ScenarioTitle.tsx
index 54fbd270496..87d0e76cb85 100644
--- a/react/javascript/src/components/gherkin/ScenarioTitle.tsx
+++ b/react/javascript/src/components/gherkin/ScenarioTitle.tsx
@@ -17,9 +17,7 @@ const ScenarioTitle: React.FunctionComponent = ({ id, scenario }) => {
-
- {scenario.keyword}:
- {' '}
+ {scenario.keyword}:{' '}
diff --git a/react/javascript/src/components/gherkin/StatusIcon.tsx b/react/javascript/src/components/gherkin/StatusIcon.tsx
index bce38da4f52..ce96d8af231 100644
--- a/react/javascript/src/components/gherkin/StatusIcon.tsx
+++ b/react/javascript/src/components/gherkin/StatusIcon.tsx
@@ -28,16 +28,13 @@ const StatusIcon: React.FunctionComponent = ({ status }) => {
export default StatusIcon
-const statusIcon = (
- status: messages.TestStepFinished.TestStepResult.Status
-): IconDefinition => {
+const statusIcon = (status: messages.TestStepFinished.TestStepResult.Status): IconDefinition => {
return {
// Keep the same order as in messages.proto - for readability's sake
[messages.TestStepFinished.TestStepResult.Status.PASSED]: faCheckCircle,
[messages.TestStepFinished.TestStepResult.Status.SKIPPED]: faStopCircle,
[messages.TestStepFinished.TestStepResult.Status.PENDING]: faPauseCircle,
- [messages.TestStepFinished.TestStepResult.Status
- .UNDEFINED]: faQuestionCircle,
+ [messages.TestStepFinished.TestStepResult.Status.UNDEFINED]: faQuestionCircle,
[messages.TestStepFinished.TestStepResult.Status.AMBIGUOUS]: faInfoCircle,
[messages.TestStepFinished.TestStepResult.Status.FAILED]: faTimesCircle,
[messages.TestStepFinished.TestStepResult.Status.UNKNOWN]: faQuestionCircle,
diff --git a/react/javascript/src/components/gherkin/Step.tsx b/react/javascript/src/components/gherkin/Step.tsx
index 4e4c4c9f2fd..afc2a2d03a2 100644
--- a/react/javascript/src/components/gherkin/Step.tsx
+++ b/react/javascript/src/components/gherkin/Step.tsx
@@ -25,12 +25,8 @@ const Step: React.FunctionComponent = ({
const cucumberQuery = React.useContext(CucumberQueryContext)
const pickleStepIds = gherkinQuery.getPickleStepIds(step.id)
- const pickleStepTestStepResults = cucumberQuery.getPickleStepTestStepResults(
- pickleStepIds
- )
- const testStepResult = cucumberQuery.getWorstTestStepResult(
- pickleStepTestStepResults
- )
+ const pickleStepTestStepResults = cucumberQuery.getPickleStepTestStepResults(pickleStepIds)
+ const testStepResult = cucumberQuery.getWorstTestStepResult(pickleStepTestStepResults)
const attachments = cucumberQuery.getPickleStepAttachments(pickleStepIds)
const stepTextElements: JSX.Element[] = []
@@ -112,9 +108,7 @@ const Step: React.FunctionComponent = ({
{step.dataTable && }
{step.docString && }
- {renderMessage && testStepResult.message && (
-
- )}
+ {renderMessage && testStepResult.message && }
{attachments.map((attachment, i) => (
diff --git a/react/javascript/src/components/gherkin/StepContainer.tsx b/react/javascript/src/components/gherkin/StepContainer.tsx
index 08299af8d73..fe85b9ab981 100644
--- a/react/javascript/src/components/gherkin/StepContainer.tsx
+++ b/react/javascript/src/components/gherkin/StepContainer.tsx
@@ -7,10 +7,7 @@ interface IProps {
status: messages.TestStepFinished.TestStepResult.Status
}
-const StepContainer: React.FunctionComponent = ({
- status,
- children,
-}) => {
+const StepContainer: React.FunctionComponent = ({ status, children }) => {
// @ts-ignore
return (
|