Skip to content

Conversation

smoelius
Copy link

@smoelius smoelius commented Jul 14, 2023

If I understand correctly, the "unless the signer does not match the curator authority" test tries to verify that a call to verify fails.

However, if the call succeeds, the subsequent assert.ok(false) is caught and the test still passes.

This PR revises the test to use the same approach as the "unless the xNFT is suspended" test:

xnft/tests/xnft.spec.ts

Lines 168 to 173 in 1f01ea2

try {
await client.install(xnft, installVault);
assert.ok(false);
} catch (err) {
const e = err as anchor.AnchorError;
assert.strictEqual(e.error.errorCode.code, "SuspendedInstallation");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant