import { expect } from "chai" ; import { parseBeaconParamsArgs } from "../../../src/options/paramsOptions" ; import { IBeaconParamsUnparsed } from "../../../src/config/types" ; describe ( "options / paramsOptions" , ( ) => { it ( "Should parse BeaconParams" , ( ) => { const beaconParamsArgs = { "params.GENESIS_FORK_VERSION" : "0x00000001" , "params.DEPOSIT_CONTRACT_ADDRESS" : "0x1234567890123456789012345678901234567890" , } ; const expectedBeaconParams = { GENESIS_FORK_VERSION : "0x00000001" , DEPOSIT_CONTRACT_ADDRESS : "0x1234567890123456789012345678901234567890" , } ; const beaconParams = parseBeaconParamsArgs ( beaconParamsArgs ) ; expect ( beaconParams ) . to . deep . equal ( expectedBeaconParams ) ; } ) ; } ) ;