diff options
| author | Your Name <you@example.com> | 2026-05-22 03:00:39 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-22 03:00:39 +0530 |
| commit | 7009d2e0ac346376733863966374eac296e0471e (patch) | |
| tree | bf44bc1a960ff924e23bf0d8d8781bac5f40cb82 /tests | |
| parent | 30c2f3a0e6561641687e2da2c841f72a0581597b (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.mjs | 4 | ||||
| -rw-r--r-- | tests/integration/test-reset-auth.mjs | 4 | ||||
| -rw-r--r-- | tests/integration/test-session-expiry.mjs | 4 |
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) { | |||
| 23 | function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } | 23 | function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } |
| 24 | 24 | ||
| 25 | function mintToken(amount = 21) { | 25 | function 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) { | |||
| 24 | function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } | 24 | function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } |
| 25 | 25 | ||
| 26 | function mintToken(amount = 21) { | 26 | function 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) { | |||
| 23 | function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } | 23 | function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } |
| 24 | 24 | ||
| 25 | function mintToken(amount = 21) { | 25 | function 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 | } |