Skip to content

Commit

Permalink
feat: add test for youtube video
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Jun 10, 2022
1 parent 3bc88cd commit 0a648d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/e2e/testBatteries.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ const Units = {
description: "⚡rblb@getalby.com",
icon: "https://pbs.twimg.com/profile_images/1308131707149746182/TxUCNiSC_200x200.jpg"
}
},

"youtube-video":{
url:"https://www.youtube.com/watch?v=0DlhslNvNBs",
output: {
recipient: 'hello@getalby.com',
name: 'Alby - Send and Receive Bitcoin on the Web',
description: "You can use your Lightning address to receive sats on your website, your Twitter profile, on YouTube or Bitcoin TV. This video shows where you find detailed ...",
icon: "https://yt3.ggpht.com/Tc6PqXPoqlh2zFZH0Qzwo8i50ygqN0zmx4v_Qs3pgbl_3VEixhN-2kT18zRJhPKduEtklpjMQdU=s48-c-k-c0x00ffffff-no-rj"
}
}

}
Expand Down Expand Up @@ -129,7 +139,7 @@ async function testUnit(page, unit) {
if (lightningData[k] != v) throw "Invalid " + k + ". Got " + lightningData[k] + " but " + v + " was expected";
}
}

}

const getLightningData = async (page): Promise<any> => {
Expand Down

0 comments on commit 0a648d9

Please sign in to comment.