Skip to content

Commit

Permalink
rename: getBddAutoInjectsFixtures -> getBddAutoInjectFixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed May 1, 2024
1 parent c1f9468 commit c44d8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/run/bddFixtures/autoInject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function isBddAutoInjectFixture(name: string) {
);
}

export function getBddAutoInjectsFixtures(bddWorld: BddWorld): BddAutoInjectFixtures {
export function getBddAutoInjectFixtures(bddWorld: BddWorld): BddAutoInjectFixtures {
return {
$testInfo: bddWorld.testInfo,
$tags: bddWorld.tags,
Expand Down
4 changes: 2 additions & 2 deletions src/steps/defineStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { GherkinStepKeyword } from '@cucumber/cucumber/lib/models/gherkin_step_k
import { CucumberStepFunction, StepConfig } from './stepConfig';
import StepDefinition from '@cucumber/cucumber/lib/models/step_definition';
import { exit } from '../utils/exit';
import { getBddAutoInjectsFixtures } from '../run/bddFixtures/autoInject';
import { getBddAutoInjectFixtures } from '../run/bddFixtures/autoInject';

/**
* Defines step by config.
Expand Down Expand Up @@ -42,7 +42,7 @@ export function buildCucumberStepFn(stepConfig: StepConfig) {
const fixturesArg = Object.assign(
{},
this.$internal.currentStepFixtures,
getBddAutoInjectsFixtures(this),
getBddAutoInjectFixtures(this),
);
return stepConfig.fn.call(this, fixturesArg, ...args);
};
Expand Down

0 comments on commit c44d8a9

Please sign in to comment.