Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
♻️ Remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed Oct 31, 2023
1 parent 8688ff3 commit f814022
Showing 1 changed file with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -733,38 +733,6 @@ describe('initGenesisState', () => {
);
});

it('should throw if chainInfo.chainData.status === TERMINATED but no corresponding terminateStateAccount', async () => {
const context = createInitGenesisStateContext(
{
...genesisInteroperability,
chainInfos: [
{
...chainInfo,
chainData: {
...chainData,
status: ChainStatus.TERMINATED,
lastCertificate: {
...lastCertificate,
validatorsHash: computeValidatorsHash(activeValidators, certificateThreshold),
},
},
chainValidators: {
activeValidators,
certificateThreshold,
},
},
],
// No terminatedStateAccount
terminatedStateAccounts: [],
},
params,
);

await expect(interopMod.initGenesisState(context)).rejects.toThrow(
`For each chainInfo with status terminated there should be a corresponding entry in terminatedStateAccounts.`,
);
});

it('should call _verifyTerminatedStateAccounts', async () => {
jest.spyOn(interopMod, '_verifyTerminatedStateAccounts' as any);

Expand Down

0 comments on commit f814022

Please sign in to comment.