Skip to content

Commit

Permalink
updated register tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rh0delta committed Aug 6, 2024
1 parent 8063677 commit 118c5a7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/register.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import test from 'tape'

import { registerAccount } from '../src/accounts/utils'
import { charlieStashSeed, setupTest } from './testing-utils'
import { register } from '../src/flows/register/register'
import { readFileSync } from 'node:fs'

const networkType = 'two-nodes'

test('Regsiter - Default Program', async (t) => {
test('Register - Default Program', async (t) => {
const { run, entropy } = await setupTest(t, { networkType, seed: charlieStashSeed })

const verifyingKey = await run('register account', register(entropy))
const verifyingKey = await run('register account', registerAccount(entropy))

const fullAccount = entropy.keyring.getAccount()

Expand All @@ -30,7 +29,7 @@ test('Register - Barebones Program', async t => {

const verifyingKey = await run(
'register - using custom params',
register(entropy, {
registerAccount(entropy, {
programModAddress: entropy.keyring.accounts.registration.address,
programData: [{ program_pointer: pointer, program_config: '0x' }],
})
Expand Down

0 comments on commit 118c5a7

Please sign in to comment.