From ad3188bf1c69ac9758971a0ec7466588c06b96fe Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Fri, 14 Jul 2023 09:14:12 -0400 Subject: [PATCH] Fix curator mismatch test --- tests/xnft.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/xnft.spec.ts b/tests/xnft.spec.ts index 40f98e6..2c3ba33 100644 --- a/tests/xnft.spec.ts +++ b/tests/xnft.spec.ts @@ -131,7 +131,10 @@ describe("A standard xNFT", () => { try { await client.verify(xnft); assert.ok(false); - } catch (_err) {} + } catch (err) { + const e = err as anchor.AnchorError; + assert.strictEqual(e.error.errorCode.code, "CuratorMismatch"); + } }); it("if the curator authority signs the transaction", async () => {