Skip to content

Commit

Permalink
fix account tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-p committed Dec 25, 2023
1 parent 678ddca commit 0f3f4de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable prefer-arrow-callback */
import { expect, test, describe } from '@jest/globals';
import { getMethodTeal, lowerFirstChar, artifactsTest } from './common';
import * as langspec from '../src/static/langspec.json';
import langspec from '../src/static/langspec.json';

async function getTeal(methodName: string) {
return getMethodTeal('tests/contracts/account.algo.ts', 'AccountTest', methodName);
Expand All @@ -17,15 +17,15 @@ describe('Account', function () {
if (fn === 'authAddr') {
expect(await getTeal(fn)).toEqual([
`// log(a.${fn})`,
'frame_dig -1 // a: account',
'frame_dig -1 // a: Account',
`acct_params_get ${a}`,
'assert',
'log',
]);
} else {
expect(await getTeal(fn)).toEqual([
`// assert(a.${fn})`,
'frame_dig -1 // a: account',
'frame_dig -1 // a: Account',
`acct_params_get ${a}`,
'assert',
'assert',
Expand All @@ -37,7 +37,7 @@ describe('Account', function () {
test('assetBalance', async function () {
expect(await getTeal('assetBalance')).toEqual([
'// assert(a.assetBalance(Asset.fromID(123)))',
'frame_dig -1 // a: account',
'frame_dig -1 // a: Account',
'int 123',
'asset_holding_get AssetBalance',
'assert',
Expand All @@ -48,7 +48,7 @@ describe('Account', function () {
test('assetFrozen', async function () {
expect(await getTeal('assetFrozen')).toEqual([
'// assert(a.assetFrozen(Asset.fromID(123)))',
'frame_dig -1 // a: account',
'frame_dig -1 // a: Account',
'int 123',
'asset_holding_get AssetFrozen',
'assert',
Expand All @@ -59,7 +59,7 @@ describe('Account', function () {
test('hasAsset', async function () {
expect(await getTeal('hasAsset')).toEqual([
'// assert(a.hasAsset(Asset.fromID(123)))',
'frame_dig -1 // a: account',
'frame_dig -1 // a: Account',
'int 123',
'asset_holding_get AssetBalance',
'swap',
Expand Down

0 comments on commit 0f3f4de

Please sign in to comment.