Skip to content

Commit f04a9fe

Browse files
committed
fix: format
1 parent a7ca9ff commit f04a9fe

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

ts-sdk/whirlpool/tests/lockPosition.test.ts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ describe("LockPosition instructions", () => {
144144
);
145145
};
146146

147-
const testNonTEshouldFailedLockPosition = async (poolName: string, positionName: string) => {
147+
const testNonTEshouldFailedLockPosition = async (
148+
poolName: string,
149+
positionName: string,
150+
) => {
148151
const positionMintAddress = positions.get(positionName)!;
149152
const [positionAddress] = await getPositionAddress(positionMintAddress);
150153
const [lockConfigAddress] = await getLockConfigAddress(positionAddress);
@@ -169,9 +172,12 @@ describe("LockPosition instructions", () => {
169172
});
170173

171174
await assert.rejects(sendTransaction(lockPositionInstruction.instructions));
172-
}
175+
};
173176

174-
const shouldFailedAnotherWalletNotOwnPosition = async (poolName: string, positionName: string) => {
177+
const shouldFailedAnotherWalletNotOwnPosition = async (
178+
poolName: string,
179+
positionName: string,
180+
) => {
175181
const anotherFunder = getNextKeypair();
176182
const positionMintAddress = positions.get(positionName)!;
177183
const [positionAddress] = await getPositionAddress(positionMintAddress);
@@ -197,15 +203,18 @@ describe("LockPosition instructions", () => {
197203
});
198204

199205
await assert.rejects(sendTransaction(lockPositionInstruction.instructions));
200-
}
206+
};
201207

202-
const shouldFailedAnotherWalletOwnsPosition = async (poolName: string, positionName: string) => {
208+
const shouldFailedAnotherWalletOwnsPosition = async (
209+
poolName: string,
210+
positionName: string,
211+
) => {
203212
const anotherPositionOwner = getNextKeypair();
204213
const positionMintAddress = positions.get(positionName)!;
205214
const [positionAddress] = await getPositionAddress(positionMintAddress);
206215
const [lockConfigAddress] = await getLockConfigAddress(positionAddress);
207216
const positionMint = await fetchMaybeMint(rpc, positionMintAddress);
208-
217+
209218
assert(positionMint.exists, "Position mint not found");
210219

211220
const [positionTokenAccountAddress] = await findAssociatedTokenPda({
@@ -225,7 +234,7 @@ describe("LockPosition instructions", () => {
225234
});
226235

227236
await assert.rejects(sendTransaction(lockPositionInstruction.instructions));
228-
}
237+
};
229238

230239
for (const poolName of poolTypes.keys()) {
231240
for (const positionTypeName of positionTypes.keys()) {

0 commit comments

Comments
 (0)