Skip to content

Commit

Permalink
fix jwt file availability
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Apr 26, 2022
1 parent d047076 commit 440ce83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/cli/test/unit/options/beaconNodeOptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import {parseBeaconNodeArgs, IBeaconNodeArgs} from "../../../src/options/beaconN
import {getTestdirPath} from "../../utils";

describe("options / beaconNodeOptions", () => {
const jwtSecretFile = getTestdirPath("./jwtsecret");
const jwtSecretHex = "0xdc6457099f127cf0bac78de8b297df04951281909db4f58b43def7c7151e765d";
fs.writeFileSync(jwtSecretFile, jwtSecretHex, {encoding: "utf8"});

it("Should parse BeaconNodeArgs", () => {
// Cast to match the expected fully defined type
const beaconNodeArgsPartial = {
Expand Down Expand Up @@ -136,7 +132,11 @@ describe("options / beaconNodeOptions", () => {
expect(options).to.deep.equal(expectedOptions);
});

it("Should use execution endpoint for eth1", () => {
it("Should use execution endpoint & jwt for eth1", () => {
const jwtSecretFile = getTestdirPath("./jwtsecret");
const jwtSecretHex = "0xdc6457099f127cf0bac78de8b297df04951281909db4f58b43def7c7151e765d";
fs.writeFileSync(jwtSecretFile, jwtSecretHex, {encoding: "utf8"});

// Cast to match the expected fully defined type
const beaconNodeArgsPartial = {
"eth1.enabled": true,
Expand Down

0 comments on commit 440ce83

Please sign in to comment.