Skip to content

Commit

Permalink
test(redirectBanner): update test for redirect banner
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 committed Feb 26, 2024
1 parent 474f207 commit c4cd119
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ describe('RedirectBanner', async () => {

test.each([
['http://p.network/'],
['http://pnetworkprotocol.eth'],
['https://dapp.pnetworkprotocol.eth.limo/'],
['ipns://dapp.pnetworkprotocol.eth']['https://dapp.pnetworkprotocol.eth/#/swap?asset=btc&from=btc&to=eth'],
['https://dapp.p.network'],
['https://dapp.p.network/#/swap?asset=btc&from=btc&to=eth'],
['http://pnetwork.eth'],
['https://dapp.pnetwork.eth.limo/'],
['ipns://dapp.pnetwork.eth'],
['https://dapp.pnetwork.eth.limo/#/swap?asset=btc&from=btc&to=eth'],
])('Should show the url popup only on specific url', async (url) => {
Object.defineProperty(window, 'location', {
value: {
Expand Down

0 comments on commit c4cd119

Please sign in to comment.