Skip to content

Commit

Permalink
Fix signer_address on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv committed Jul 30, 2024
1 parent 121f316 commit ba53006
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@ describe('CounterfactualSafesController', () => {
});

it('returns 403 if signer_address is not a valid Ethereum address', async () => {
const address = faker.string.sample() as `0x${string}`;
const address = getAddress(faker.finance.ethereumAddress());
const chain = chainBuilder().build();
const counterfactualSafe = counterfactualSafeBuilder().build();
const authPayloadDto = authPayloadDtoBuilder()
.with('chain_id', chain.chainId)
.with('signer_address', address)
.with('signer_address', faker.string.sample() as `0x${string}`)
.build();
const accessToken = jwtService.sign(authPayloadDto);

Expand All @@ -258,7 +258,7 @@ describe('CounterfactualSafesController', () => {
const counterfactualSafe = counterfactualSafeBuilder().build();
const authPayloadDto = authPayloadDtoBuilder()
.with('chain_id', chainId)
.with('signer_address', address)
.with('signer_address', faker.string.sample() as `0x${string}`)
.build();
const accessToken = jwtService.sign(authPayloadDto);

Expand Down Expand Up @@ -533,13 +533,13 @@ describe('CounterfactualSafesController', () => {
});

it('returns 403 if signer_address is not a valid Ethereum address', async () => {
const address = faker.string.sample() as `0x${string}`;
const address = getAddress(faker.finance.ethereumAddress());
const chain = chainBuilder().build();
const createCounterfactualSafeDto =
createCounterfactualSafeDtoBuilder().build();
const authPayloadDto = authPayloadDtoBuilder()
.with('chain_id', chain.chainId)
.with('signer_address', address)
.with('signer_address', faker.string.sample() as `0x${string}`)
.build();
const accessToken = jwtService.sign(authPayloadDto);

Expand Down

0 comments on commit ba53006

Please sign in to comment.