Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagonapoli committed Feb 27, 2020
1 parent 0989871 commit 92397f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test.js
Expand Up @@ -86,4 +86,12 @@ if (isWsl) {
test('open URL in specified windows app with arguments given a wsl path to the app', async () => {
await open('https://sindresorhus.com', {app: [chromeWslName, '--incognito']});
});

test('open URL with query strings and spaces works with url option', async () => {
await open('https://sindresorhus.com/?abc=123&def=456&ghi=with spaces', {url: true});
});

test('open URL with query strings works with url option', async () => {
await open('https://sindresorhus.com/?abc=123&def=456', {url: true});
});
}

0 comments on commit 92397f5

Please sign in to comment.