Skip to content

Commit

Permalink
Remove fromYaml from test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Aug 12, 2024
1 parent 1374edd commit fb88e5a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/unit/account.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,20 @@ describe('Account tests', () => {
expect(account.address.isEOA).toBe(true)
})

test('Account - from yaml file', async () => {
const walletPath = path.join(__dirname, 'wallet_test_version_1.yaml')
// test('Account - from yaml file', async () => {
// const walletPath = path.join(__dirname, 'wallet_test_version_1.yaml')

const account = await Account.fromYaml(walletPath, 'unsecurePassword')
expect(account.address.toString()).toBe(
'AU126tkwrhXn9gEG5JPtrNy8NNLbVMwywokgLKshSYyzP8qusqXZL'
)
expect(account.publicKey.toString()).toBe(
'P126AtzfcSJwdi6xsAmXbzXhhwVhS9d1hRjFNT4PfrDogt3nAihj'
)
expect(account.version).toBe(Version.V1)
expect(account.address.version).toBe(Version.V0)
expect(account.address.isEOA).toBe(true)
})
// const account = await Account.fromYaml(walletPath, 'unsecurePassword')
// expect(account.address.toString()).toBe(
// 'AU126tkwrhXn9gEG5JPtrNy8NNLbVMwywokgLKshSYyzP8qusqXZL'
// )
// expect(account.publicKey.toString()).toBe(
// 'P126AtzfcSJwdi6xsAmXbzXhhwVhS9d1hRjFNT4PfrDogt3nAihj'
// )
// expect(account.version).toBe(Version.V1)
// expect(account.address.version).toBe(Version.V0)
// expect(account.address.isEOA).toBe(true)
// })

test('Account - from environment variables', async () => {
process.env.PRIVATE_KEY =
Expand Down

1 comment on commit fb88e5a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report for experimental massa-web3

St.
Category Percentage Covered / Total
🟡 Statements 65.98% 1125/1705
🔴 Branches 46.75% 187/400
🔴 Functions 47.8% 206/431
🟡 Lines 66.25% 1119/1689

Test suite run success

129 tests passing in 13 suites.

Report generated by 🧪jest coverage report action from fb88e5a

Please sign in to comment.