Skip to content

Commit 56c4797

Browse files
committed
Fix tests
1 parent 32ca515 commit 56c4797

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

clients/js/test/createTree.test.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@ import {
1414
createTree,
1515
createTreeConfig,
1616
fetchTreeConfigFromSeeds,
17+
getCompressionProgramsForV1Ixs,
1718
safeFetchTreeConfigFromSeeds,
18-
getMerkleTreeSize,
19+
} from '../src';
20+
import { createUmi } from './_setup';
21+
import {
1922
SPL_ACCOUNT_COMPRESSION_PROGRAM_ID,
20-
getCompressionPrograms,
23+
getMerkleTreeSize,
24+
} from '@metaplex-foundation/spl-account-compression';
25+
import {
2126
MPL_NOOP_PROGRAM_ID,
2227
MPL_ACCOUNT_COMPRESSION_PROGRAM_ID,
23-
} from '../src';
24-
import { createUmi } from './_setup';
28+
} from '@metaplex-foundation/mpl-account-compression';
2529

2630
const createTreeWithSpecificMerkleOwner = async (
2731
context: Parameters<typeof createAccount>[0] &
@@ -137,7 +141,8 @@ test('it can create a Bubblegum tree using mpl-account-compression and mpl-noop'
137141
const merkleTree = generateSigner(umi);
138142

139143
// For these tests, make sure `getCompressionPrograms` doesn't return spl programs.
140-
const { logWrapper, compressionProgram } = await getCompressionPrograms(umi);
144+
const { logWrapper, compressionProgram } =
145+
await getCompressionProgramsForV1Ixs(umi);
141146
t.is(logWrapper, MPL_NOOP_PROGRAM_ID);
142147
t.is(compressionProgram, MPL_ACCOUNT_COMPRESSION_PROGRAM_ID);
143148

@@ -146,7 +151,7 @@ test('it can create a Bubblegum tree using mpl-account-compression and mpl-noop'
146151
merkleTree,
147152
maxDepth: 14,
148153
maxBufferSize: 64,
149-
...(await getCompressionPrograms(umi)),
154+
...(await getCompressionProgramsForV1Ixs(umi)),
150155
});
151156
await builder.sendAndConfirm(umi);
152157

clients/js/test/transfer.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ test('it can transfer a compressed NFT using mpl-account-compression and mpl-noo
6868
const umi = await createUmi();
6969

7070
// For these tests, make sure `getCompressionProgramsForV1Ixs` doesn't return spl programs.
71-
const { logWrapper, compressionProgram } = await getCompressionProgramsForV1Ixs(umi);
71+
const { logWrapper, compressionProgram } =
72+
await getCompressionProgramsForV1Ixs(umi);
7273
t.is(logWrapper, MPL_NOOP_PROGRAM_ID);
7374
t.is(compressionProgram, MPL_ACCOUNT_COMPRESSION_PROGRAM_ID);
7475

@@ -114,7 +115,8 @@ test('it cannot transfer a compressed NFT owned by spl-account-compression using
114115
const umi = await createUmi();
115116

116117
// For these tests, make sure `getCompressionPrograms` doesn't return spl programs.
117-
const { logWrapper, compressionProgram } = await getCompressionProgramsForV1Ixs(umi);
118+
const { logWrapper, compressionProgram } =
119+
await getCompressionProgramsForV1Ixs(umi);
118120
t.is(logWrapper, MPL_NOOP_PROGRAM_ID);
119121
t.is(compressionProgram, MPL_ACCOUNT_COMPRESSION_PROGRAM_ID);
120122

0 commit comments

Comments
 (0)