Skip to content

Commit

Permalink
Change remaining camel case keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Feb 7, 2022
1 parent 8331c66 commit 942b725
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/lodestar/test/spec/bellatrix/operations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ operations<bellatrix.BeaconState>(ForkName.bellatrix, {

execution_payload: (
state,
testCase: IBaseSpecTest & {execution_payload: bellatrix.ExecutionPayload; execution: {executionValid: boolean}}
testCase: IBaseSpecTest & {execution_payload: bellatrix.ExecutionPayload; execution: {execution_valid: boolean}}
) => {
processExecutionPayload((state as unknown) as CachedBeaconStateBellatrix, testCase.execution_payload, {
executePayload: () => testCase.execution.executionValid,
executePayload: () => testCase.execution.execution_valid,
});
},
});
7 changes: 4 additions & 3 deletions packages/spec-test-util/src/multi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {expect} from "chai";
@typescript-eslint/no-unsafe-assignment,
@typescript-eslint/no-explicit-any,
@typescript-eslint/no-unused-vars,
@typescript-eslint/naming-convention,
func-names */

export interface IBaseCase {
Expand All @@ -23,12 +24,12 @@ export interface IBaseCase {
interface TestSpec<TestCase extends IBaseCase> {
title: string;
summary: string;
forksTimeline: string;
forks_timeline: string;
forks: string;
config: string;
runner: string;
handler: string;
testCases: TestCase[];
test_cases: TestCase[];
}

/**
Expand Down Expand Up @@ -66,7 +67,7 @@ export function describeMultiSpec<TestCase extends IBaseCase, Result>(

describe(testSuiteName, function () {
this.timeout(timeout);
for (const [index, testCase] of testSpec.testCases.entries()) {
for (const [index, testCase] of testSpec.test_cases.entries()) {
if (shouldSkip(testCase, index)) {
continue;
}
Expand Down

0 comments on commit 942b725

Please sign in to comment.