REF: linting

This commit is contained in:
Overtorment 2020-10-29 09:34:03 +00:00
parent c842513d08
commit f8b6fd4093
2 changed files with 9 additions and 3 deletions

View File

@ -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 {

View File

@ -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'));
});