fix(test): resolve reference error in nostr-login-permissions test

- Correctly destructure `plainCall` from `env.enableCalls` in `tests/nostr-login-permissions.test.mjs` to fix `ReferenceError: plainCall is not defined`.
- Verified that all tests in `tests/nostr-login-permissions.test.mjs` now pass.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-29 05:48:17 +00:00
1 parent 0caa31eab0
commit 13d2ee28b0
1 file changed
+1 -1
+1 -1
View File
@@ -313,7 +313,7 @@ test("NIP-07 login falls back when structured permissions fail", async () => {
const pubkey = result.pubkey;
assert.equal(pubkey, HEX_PUBKEY);
assert.ok(env.enableCalls.length >= 2, "should retry with alternate payloads");
const [objectCall, stringCall] = env.enableCalls;
const [objectCall, stringCall, plainCall] = env.enableCalls;
assert.ok(Array.isArray(objectCall?.permissions));
assert.equal(
typeof objectCall.permissions[0],