mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
REF: linting
This commit is contained in:
parent
c842513d08
commit
f8b6fd4093
@ -275,7 +275,7 @@ export default class LNDCreateInvoice extends Component {
|
||||
}
|
||||
|
||||
// decoding the lnurl
|
||||
const url = Lnurl.getUrlFromLnurl(data)
|
||||
const url = Lnurl.getUrlFromLnurl(data);
|
||||
|
||||
// calling the url
|
||||
try {
|
||||
|
@ -26,8 +26,14 @@ describe('LNURL', function () {
|
||||
|
||||
it('can isLnurl()', () => {
|
||||
assert.ok(Lnurl.isLnurl('LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3XJEMNW4HZU7RE0GHKCMN4WFKZ7URP0YLH2UM9WF5KG0FHXYCNV9G9W58'));
|
||||
assert.ok(Lnurl.isLnurl('https://site.com/?lightning=LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3XJEMNW4HZU7RE0GHKCMN4WFKZ7URP0YLH2UM9WF5KG0FHXYCNV9G9W58'));
|
||||
assert.ok(!Lnurl.isLnurl('https://site.com/?bs=LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3XJEMNW4HZU7RE0GHKCMN4WFKZ7URP0YLH2UM9WF5KG0FHXYCNV9G9W58'));
|
||||
assert.ok(
|
||||
Lnurl.isLnurl(
|
||||
'https://site.com/?lightning=LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3XJEMNW4HZU7RE0GHKCMN4WFKZ7URP0YLH2UM9WF5KG0FHXYCNV9G9W58',
|
||||
),
|
||||
);
|
||||
assert.ok(
|
||||
!Lnurl.isLnurl('https://site.com/?bs=LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3XJEMNW4HZU7RE0GHKCMN4WFKZ7URP0YLH2UM9WF5KG0FHXYCNV9G9W58'),
|
||||
);
|
||||
assert.ok(!Lnurl.isLnurl('bs'));
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user