Skip to content

Commit

Permalink
fix: UT coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Dec 6, 2024
1 parent a5c5122 commit 45a1bb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions agglayer/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ func TestMarshalJSON(t *testing.T) {
data, err := json.Marshal(cert)
require.NoError(t, err)
require.Equal(t, expectedJSON, string(data))

require.Equal(t, "0xeb25e9b7f4551e438a9647a70a4da39a49d34545bd828a1b6ee6bc1a0065b8a5", cert.Hash().String())
require.Equal(t, "0x40691cd4f9ff623a146d61e1e55240688ba4c5ebe373392884a8bdd33739e810", cert.BridgeExits[0].Hash().String())
require.Equal(t, "0x23fbdb2d272c9a4ae45135986363363d2e87dd6c2f2494a62b86851396f3fed4", cert.ImportedBridgeExits[0].Hash().String())
require.Equal(t, "0x7eb947fcd0ed89ba0f41ec3f85e600d7114ec9349eb99a9478e3dd4e456297b1", cert.ImportedBridgeExits[1].Hash().String())
})
}

Expand Down

0 comments on commit 45a1bb7

Please sign in to comment.