Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/test/connection-secret.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe("Connection Secret Handling", () => {
test("errors when connection string is malformed", () => {
const result = runCli<{ error: string }>(`-c "nostr+walletconnect://asdf" get-balance`);
expect(result.success).toBe(false);
expect(result.output.error).toContain("Invalid connection secret");
expect(result.output.error).toContain("Invalid NWC URL");
});

test("reads connection secret from NWC_URL environment variable", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/test/lightning-tools.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { MakeInvoiceResult } from "../tools/nwc/make_invoice.js";
const exampleInvoice =
"lnbc1u1p5hlrr8dqqnp4qwmtpr4p72ms7gnq3pkfk2876y2msvl33s3840dlp6xsv2w59dpscpp55utq6s8u5407namwt4jvhgsaf9fyszppjfwyxp7qsw6cyc8vxukqsp583usez9yhmkcavvvjz8cq56v3nglh2q37xkf4ufrgwxfrfjkm54s9qyysgqcqzp2xqyz5vqgtyysw64zt9sj6kfpqnekzwc37y2uyg0xdapgxqqth4uahff0x89sjfsvukjlllasg5dn05u2uha6qcvxz2y3ye5k7958qtes4pv4ggqtnjyky";

const exampleLightningAddress = "nwc1769966844@getalby.com";
const exampleLightningAddress = "nwc1779699236161@getalby.com";

describe("Lightning Tools (no wallet required)", () => {
test("fiat-to-sats converts USD to sats", () => {
Expand Down
2 changes: 0 additions & 2 deletions src/test/nwc-hold-invoices.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ describe("NWC HOLD Invoice Commands", () => {
"-c",
sender.nwcUrl,
"pay-invoice",
"-i",
holdResult.output.invoice,
],
{ stdio: ["ignore", "pipe", "pipe"] }
Expand Down Expand Up @@ -104,7 +103,6 @@ describe("NWC HOLD Invoice Commands", () => {
"-c",
sender.nwcUrl,
"pay-invoice",
"-i",
holdResult.output.invoice,
],
{ stdio: ["ignore", "pipe", "pipe"] }
Expand Down
4 changes: 2 additions & 2 deletions src/test/nwc-payments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("NWC Payment Commands", () => {

// Pay with sender wallet
const paymentResult = runCli<PayInvoiceResult>(
`-c "${sender.nwcUrl}" pay-invoice -i "${invoiceResult.output.invoice}"`
`-c "${sender.nwcUrl}" pay-invoice "${invoiceResult.output.invoice}"`
);
expect(paymentResult.success).toBe(true);
expect(paymentResult.output.preimage).toBeDefined();
Expand All @@ -41,7 +41,7 @@ describe("NWC Payment Commands", () => {

// Pay the invoice first (unpaid invoices may not be found)
const payResult = runCli<PayInvoiceResult>(
`-c "${sender.nwcUrl}" pay-invoice -i "${invoiceResult.output.invoice}"`
`-c "${sender.nwcUrl}" pay-invoice "${invoiceResult.output.invoice}"`
);
expect(payResult.success).toBe(true);

Expand Down
Loading