Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed Sep 16, 2024
1 parent ff12db7 commit b4d4d7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:esm": "tsc --project ./tsconfig.build.json --module es2015 --outDir ./src/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./src/_esm/package.json",
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./src/_types --outDir ./src/_esm --emitDeclarationOnly --declaration --declarationMap",
"clean": "rimraf src/_esm src/_cjs src/_types",
"test": "jest --setupFiles dotenv/config",
"test": "jest",
"test:e2e": "jest --config ./jest-e2e.json",
"test:coverage": "jest --coverage",
"test:badges": "jest --coverage && jest-coverage-badges output './badges'",
Expand Down
8 changes: 6 additions & 2 deletions test/unit/account/account-types/safe/erc1271.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ describe('test ERC-1271 on the account', () => {
hash,
})

const signer = privateKeyToAccount(process.env.PRIVATE_KEY as Hex)
const signer = privateKeyToAccount(
'0xa88f4055e4ffb55fd532c07c65aa45ba1d969c07f749e14f6b79bfb434688efb' as Hex,
)
const rawSignature = await signer.signMessage({
message: { raw: formattedHash },
})
Expand Down Expand Up @@ -55,7 +57,9 @@ describe('test ERC-1271 on the account', () => {
hash,
})

const signer = privateKeyToAccount(process.env.PRIVATE_KEY as Hex)
const signer = privateKeyToAccount(
'0xa88f4055e4ffb55fd532c07c65aa45ba1d969c07f749e14f6b79bfb434688efb' as Hex,
)
const rawSignature = await signer.signMessage({
message: { raw: formattedHash },
})
Expand Down

0 comments on commit b4d4d7a

Please sign in to comment.