Skip to content

Commit

Permalink
devCreateAccount test added
Browse files Browse the repository at this point in the history
  • Loading branch information
volovyks committed Oct 12, 2022
1 parent e86b735 commit 0245212
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/js/__tests__/account.ava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,13 @@ if (getNetworkFromEnv() === 'sandbox') {
const result = await statusMessage.view('get_status', {account_id: root});
t.is(result, 'hello');
});

test('devCreateAccount', async t => {
const {root} = t.context.accounts;
const devAcc = await root.devCreateAccount();
await devAcc.deploy(path.join(__dirname, '..', '..', '..', '__tests__', 'build', 'debug', 'status_message.wasm'));
await root.call(devAcc, 'set_status', {message: 'hello'});
const result = await devAcc.view('get_status', {account_id: root});
t.is(result, 'hello');
});
}

0 comments on commit 0245212

Please sign in to comment.