From 07ce43968841b509de7d687ffd432de290c5ab1a Mon Sep 17 00:00:00 2001 From: aurelien-reeves Date: Wed, 1 Sep 2021 11:00:21 +0200 Subject: [PATCH] Fix linting errors --- features/step_definitions/cli_steps.ts | 2 +- src/cli/configuration_builder.ts | 2 +- test/fake_report_server.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/step_definitions/cli_steps.ts b/features/step_definitions/cli_steps.ts index 1f35a0ea0..3735f1866 100644 --- a/features/step_definitions/cli_steps.ts +++ b/features/step_definitions/cli_steps.ts @@ -58,7 +58,7 @@ When( args += ' ' + formats.map((f) => `--format ${f}`).join(' ') const renderedArgs = Mustache.render(args, this) const stringArgs = stringArgv(renderedArgs) - return this.run(this.localExecutablePath, stringArgs) + return await this.run(this.localExecutablePath, stringArgs) } ) diff --git a/src/cli/configuration_builder.ts b/src/cli/configuration_builder.ts index 6aa44b95a..1673e396c 100644 --- a/src/cli/configuration_builder.ts +++ b/src/cli/configuration_builder.ts @@ -141,7 +141,7 @@ export default class ConfigurationBuilder { async expandFeaturePaths(featurePaths: string[]): Promise { featurePaths = featurePaths.map((p) => p.replace(/(:\d+)*$/g, '')) // Strip line numbers featurePaths = [...new Set(featurePaths)] // Deduplicate the feature files - return this.expandPaths(featurePaths, '.feature') + return await this.expandPaths(featurePaths, '.feature') } getFeatureDirectoryPaths(featurePaths: string[]): string[] { diff --git a/test/fake_report_server.ts b/test/fake_report_server.ts index b912ec943..9fc459e85 100644 --- a/test/fake_report_server.ts +++ b/test/fake_report_server.ts @@ -90,7 +90,7 @@ export default class FakeReportServer { }) ) ) - return new Promise((resolve, reject) => { + return await new Promise((resolve, reject) => { this.server.close((err) => { if (doesHaveValue(err)) return reject(err) resolve(this.receivedBodies)