From 9eff50be3c69172ba05517ea5447d4b06b836a0a Mon Sep 17 00:00:00 2001 From: tiagonapoli Date: Wed, 26 Feb 2020 23:28:48 -0300 Subject: [PATCH] Add tests --- test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test.js b/test.js index 550a204..9eb0137 100644 --- a/test.js +++ b/test.js @@ -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 }); + }); }