upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-22 03:00:39 +0530
committerYour Name <you@example.com>2026-05-22 03:00:39 +0530
commit7009d2e0ac346376733863966374eac296e0471e (patch)
treebf44bc1a960ff924e23bf0d8d8781bac5f40cb82 /tests
parent30c2f3a0e6561641687e2da2c841f72a0581597b (diff)
fix(tests): replace dead testnut.cashu.space with working mint URL in 3 test files
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/test-dns-firewall.mjs4
-rw-r--r--tests/integration/test-reset-auth.mjs4
-rw-r--r--tests/integration/test-session-expiry.mjs4
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/integration/test-dns-firewall.mjs b/tests/integration/test-dns-firewall.mjs
index b69b524..f3d3284 100644
--- a/tests/integration/test-dns-firewall.mjs
+++ b/tests/integration/test-dns-firewall.mjs
@@ -23,8 +23,8 @@ function runJson(cmd) {
23function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } 23function sleep(ms) { return new Promise(r => setTimeout(r, ms)); }
24 24
25function mintToken(amount = 21) { 25function mintToken(amount = 21) {
26 run('cashu -h https://testnut.cashu.space invoice ' + amount + ' 2>&1'); 26 run('cashu -h https://testnut-nutshell.mints.orangesync.tech invoice ' + amount + ' 2>&1');
27 const out = run('cashu -h https://testnut.cashu.space send --legacy ' + amount + ' 2>&1'); 27 const out = run('cashu -h https://testnut-nutshell.mints.orangesync.tech send --legacy ' + amount + ' 2>&1');
28 const match = out && out.match(/cashuA[a-zA-Z0-9_-]+/); 28 const match = out && out.match(/cashuA[a-zA-Z0-9_-]+/);
29 return match ? match[0] : null; 29 return match ? match[0] : null;
30} 30}
diff --git a/tests/integration/test-reset-auth.mjs b/tests/integration/test-reset-auth.mjs
index 279b2f9..86011c5 100644
--- a/tests/integration/test-reset-auth.mjs
+++ b/tests/integration/test-reset-auth.mjs
@@ -24,8 +24,8 @@ function runJson(cmd) {
24function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } 24function sleep(ms) { return new Promise(r => setTimeout(r, ms)); }
25 25
26function mintToken(amount = 21) { 26function mintToken(amount = 21) {
27 run('cashu -h https://testnut.cashu.space invoice ' + amount + ' 2>&1'); 27 run('cashu -h https://testnut-nutshell.mints.orangesync.tech invoice ' + amount + ' 2>&1');
28 const out = run('cashu -h https://testnut.cashu.space send --legacy ' + amount + ' 2>&1'); 28 const out = run('cashu -h https://testnut-nutshell.mints.orangesync.tech send --legacy ' + amount + ' 2>&1');
29 const match = out && out.match(/cashuA[a-zA-Z0-9_-]+/); 29 const match = out && out.match(/cashuA[a-zA-Z0-9_-]+/);
30 return match ? match[0] : null; 30 return match ? match[0] : null;
31} 31}
diff --git a/tests/integration/test-session-expiry.mjs b/tests/integration/test-session-expiry.mjs
index c8334ab..ececf89 100644
--- a/tests/integration/test-session-expiry.mjs
+++ b/tests/integration/test-session-expiry.mjs
@@ -23,8 +23,8 @@ function runJson(cmd) {
23function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } 23function sleep(ms) { return new Promise(r => setTimeout(r, ms)); }
24 24
25function mintToken(amount = 21) { 25function mintToken(amount = 21) {
26 run('cashu -h https://testnut.cashu.space invoice ' + amount + ' 2>&1'); 26 run('cashu -h https://testnut-nutshell.mints.orangesync.tech invoice ' + amount + ' 2>&1');
27 const out = run('cashu -h https://testnut.cashu.space send --legacy ' + amount + ' 2>&1'); 27 const out = run('cashu -h https://testnut-nutshell.mints.orangesync.tech send --legacy ' + amount + ' 2>&1');
28 const match = out && out.match(/cashuA[a-zA-Z0-9_-]+/); 28 const match = out && out.match(/cashuA[a-zA-Z0-9_-]+/);
29 return match ? match[0] : null; 29 return match ? match[0] : null;
30} 30}